Skip to content

Commit e73d8fb

Browse files
committed
Merge pull request #459 from haypo/bytes_warn
fix BytesWarning on Python 3
2 parents c86685a + 925efae commit e73d8fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pep8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ def python_3000_backticks(logical_line):
11711171
##############################################################################
11721172

11731173

1174-
if '' == ''.encode():
1174+
if sys.version_info < (3,):
11751175
# Python 2: implicit encoding.
11761176
def readlines(filename):
11771177
"""Read the source code."""

0 commit comments

Comments
 (0)