This repository has been archived on 2023-01-27. You can view files and clone it, but cannot push or open issues or pull requests.
cad/fusion360/python/Lib/site-packages/ptvsd/compat.py
2022-10-15 19:16:08 +02:00

29 lines
611 B
Python

# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in the project root
# for license information.
# Python 2.x/3.x compatibility helpers
try:
import builtins
except ImportError:
import __builtin__ as builtins # noqa
try:
import queue
except ImportError:
import Queue as queue # noqa
try:
unicode = builtins.unicode
bytes = builtins.str
except AttributeError:
unicode = builtins.str
bytes = builtins.bytes
try:
xrange = builtins.xrange
except AttributeError:
xrange = builtins.range