diff options
author | Anthony Sottile <asottile@umich.edu> | 2018-12-31 15:02:29 -0800 |
---|---|---|
committer | Ian Stapleton Cordasco <graffatcolmingov@gmail.com> | 2018-12-31 19:33:09 -0600 |
commit | 5ff36693b89351e5d74c696d3724c5afc5fe7510 (patch) | |
tree | a8056ae7ec070efc771e50cd838b512a77973046 | |
parent | 75bc0c03c145b8e53324ccd7810242ecc21b5d7f (diff) | |
download | pyflakes-5ff36693b89351e5d74c696d3724c5afc5fe7510.tar.gz |
Remove impossible except UnicodeError
reading a file in binary mode (`rb`) does not involve unicode
-rw-r--r-- | pyflakes/api.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/pyflakes/api.py b/pyflakes/api.py index 4fcd27c..3ddb386 100644 --- a/pyflakes/api.py +++ b/pyflakes/api.py @@ -92,9 +92,6 @@ def checkPath(filename, reporter=None): try: with open(filename, 'rb') as f: codestr = f.read() - except UnicodeError: - reporter.unexpectedError(filename, 'problem decoding source') - return 1 except IOError: msg = sys.exc_info()[1] reporter.unexpectedError(filename, msg.args[1]) |