diff options
-rw-r--r-- | pyflakes/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyflakes/api.py b/pyflakes/api.py index e8647f9..3f3899a 100644 --- a/pyflakes/api.py +++ b/pyflakes/api.py @@ -73,7 +73,7 @@ def checkPath(filename, reporter=None): if reporter is None: reporter = modReporter._makeDefaultReporter() try: - with open(filename, 'rb') as f: + with open(filename, 'r') as f: codestr = f.read() if sys.version_info < (2, 7): codestr += '\n' # Work around for Python <= 2.6 |