diff --git a/NEWS.md b/NEWS.md index b2f128e7..dd36ca55 100644 --- a/NEWS.md +++ b/NEWS.md @@ -3,7 +3,7 @@ - Add early bytecodes: 1.0, 1.1, 1.2, and 1.6. Going off of pycdc bytecode since this is the only bytecode for these versions I know of - Fix bug in Python 3.x decompiling 2.x that contains strings with non-ascii characters -- More generally, better handling of non-ascii Python 2 strings in Python 3 +- More generally, better handling of non-ascii Python 2 strings in both input and output in Python 3 4.0.4 2019-10-02 ================ diff --git a/xdis/verify.py b/xdis/verify.py index 0333dcd1..e4ac74b6 100644 --- a/xdis/verify.py +++ b/xdis/verify.py @@ -117,7 +117,7 @@ def verify_file(real_source_filename, real_bytecode_filename): if not os.path.exists(real_source_filename): return - if PYTHON_VERSION < 3.6: + if PYTHON_VERSION < 3.5: f = open(real_source_filename, 'U') else: f = open(real_source_filename, newline=None, errors='backslashreplace')