Skip to content

Commit 1115386

Browse files
authored
Make pyflakes happy about its our own code (#295)
1 parent 6a9fcbc commit 1115386

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyflakes/checker.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ def getNodeType(node_class):
4242
def getNodeType(node_class):
4343
return node_class.__name__.upper()
4444

45+
# Silence `pyflakes` from reporting `undefined name 'unicode'` in Python 3.
46+
unicode = str
47+
4548
# Python >= 3.3 uses ast.Try instead of (ast.TryExcept + ast.TryFinally)
4649
if PY32:
4750
def getAlternatives(n):

0 commit comments

Comments
 (0)