summaryrefslogtreecommitdiff
path: root/compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'compat.py')
-rw-r--r--compat.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/compat.py b/compat.py
index 41c52e7..7fffedf 100644
--- a/compat.py
+++ b/compat.py
@@ -67,7 +67,7 @@ else:
def to_unicode(s):
# type: (str) -> unicode
- return unicode(s)
+ return unicode(s) # NOQA
if PY3:
string_types = str
@@ -83,10 +83,10 @@ if PY3:
BytesIO = io.BytesIO
else:
- string_types = basestring
- integer_types = (int, long)
+ string_types = basestring # NOQA
+ integer_types = (int, long) # NOQA
class_types = (type, types.ClassType)
- text_type = unicode
+ text_type = unicode # NOQA
binary_type = str
# to allow importing
@@ -114,6 +114,7 @@ def with_metaclass(meta, *bases):
"""Create a base class with a metaclass."""
return meta("NewBase", bases, {})
+
DBG_TOKEN = 1
DBG_EVENT = 2
DBG_NODE = 4