summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Cordasco <sigmavirus24@users.noreply.github.com>2015-11-05 09:08:30 -0600
committerIan Cordasco <sigmavirus24@users.noreply.github.com>2015-11-05 09:08:30 -0600
commite73d8fbe4151345ab78b69300cdeea5d9b67840b (patch)
tree662c42c6c6496402b3389fc8fee8ba39f2de26e2
parentc86685a3fe0ff0b6f813d90677f67a4faf662791 (diff)
parent925efaea8cbefb6e5a36e3524b6457da0880c520 (diff)
downloadpep8-e73d8fbe4151345ab78b69300cdeea5d9b67840b.tar.gz
Merge pull request #459 from haypo/bytes_warn
fix BytesWarning on Python 3
-rwxr-xr-xpep8.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pep8.py b/pep8.py
index b1916cc..d292341 100755
--- a/pep8.py
+++ b/pep8.py
@@ -1171,7 +1171,7 @@ def python_3000_backticks(logical_line):
##############################################################################
-if '' == ''.encode():
+if sys.version_info < (3,):
# Python 2: implicit encoding.
def readlines(filename):
"""Read the source code."""