summaryrefslogtreecommitdiff
path: root/compat.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-07-12 12:13:34 +0200
committerAnthon van der Neut <anthon@mnt.org>2017-07-12 12:13:34 +0200
commit2ea4de43fe2e0160e27b605f2c65f33c5a2083d7 (patch)
treeddd268394e9fa05011585fd326cb4f635f0510a1 /compat.py
parentae5b5638efc9f20c027aac28f52dbfe0fc955998 (diff)
downloadruamel.yaml-2ea4de43fe2e0160e27b605f2c65f33c5a2083d7.tar.gz
update to flake8==3.3.0 with --ignore F405
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