summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-11-23 06:29:02 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-11-23 06:29:02 -0500
commitd096eb49df4fb1f0395117a41658f733e85760f7 (patch)
tree6a2e7fcf4baf7667e3a03abdf9b9fb4bc5a3ce8f /igor.py
parent7aa4b84e62e2026bbdfdece5255e9436c8324bab (diff)
downloadpython-coveragepy-git-d096eb49df4fb1f0395117a41658f733e85760f7.tar.gz
Make this runnable on Python 3
Diffstat (limited to 'igor.py')
-rw-r--r--igor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/igor.py b/igor.py
index 5eed9bb9..b82fc96b 100644
--- a/igor.py
+++ b/igor.py
@@ -261,13 +261,13 @@ def do_check_eol():
with open(fname, "rb") as f:
for n, line in enumerate(f, start=1):
if crlf:
- if "\r" in line:
+ if b"\r" in line:
print("%s@%d: CR found" % (fname, n))
return
if trail_white:
line = line[:-1]
if not crlf:
- line = line.rstrip('\r')
+ line = line.rstrip(b'\r')
if line.rstrip() != line:
print("%s@%d: trailing whitespace found" % (fname, n))
return