add noqa to py3 type checks

This prevents `F821 undefined name` warnings
This commit is contained in:
Johnny Robeson 2016-06-17 04:03:00 -04:00
parent 1c761c60fb
commit 4e2c2a9a2e

View file

@ -47,9 +47,9 @@ REDACTED_TOMBSTONE = 'REDACTED'
# Utilities.
PY3 = sys.version_info[0] == 3
STRING = str if PY3 else unicode
BASESTRING = str if PY3 else basestring
NUMERIC_TYPES = (int, float) if PY3 else (int, float, long)
STRING = str if PY3 else unicode # noqa
BASESTRING = str if PY3 else basestring # noqa
NUMERIC_TYPES = (int, float) if PY3 else (int, float, long) # noqa
def iter_first(sequence):