diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-11-23 06:29:02 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-11-23 06:29:02 -0500 |
commit | d096eb49df4fb1f0395117a41658f733e85760f7 (patch) | |
tree | 6a2e7fcf4baf7667e3a03abdf9b9fb4bc5a3ce8f /igor.py | |
parent | 7aa4b84e62e2026bbdfdece5255e9436c8324bab (diff) | |
download | python-coveragepy-git-d096eb49df4fb1f0395117a41658f733e85760f7.tar.gz |
Make this runnable on Python 3
Diffstat (limited to 'igor.py')
-rw-r--r-- | igor.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |