We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9decae5 commit 1e86ccbCopy full SHA for 1e86ccb
1 file changed
ietf/utils/management/commands/pyflakes.py
@@ -8,6 +8,8 @@
8
from django.conf import settings
9
from django.core.management.base import BaseCommand
10
11
+import debug # pyflakes:ignore
12
+
13
# BlackHole, PySyntaxError and checking based on
14
# https://github.com/patrys/gedit-pyflakes-plugin.git
15
class BlackHole(object):
@@ -82,7 +84,7 @@ def checkPath(filename, verbosity):
82
84
@return: the number of warnings printed
83
85
"""
86
try:
- return check(file(filename, 'U').read() + '\n', filename, verbosity)
87
+ return check(open(filename, 'U').read() + '\n', filename, verbosity)
88
except IOError as msg:
89
return ["%s: %s" % (filename, msg.args[1])]
90
except TypeError:
0 commit comments