Fusion360-Addons/python/Lib/site-packages/ptvsd/compat.py
2021-10-31 19:12:13 +01: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