Show More
@@ -454,7 +454,7 b' class mapfile(dict):' | |||||
454 | if err.errno != errno.ENOENT: |
|
454 | if err.errno != errno.ENOENT: | |
455 | raise |
|
455 | raise | |
456 | return |
|
456 | return | |
457 | for i, line in enumerate(fp): |
|
457 | for i, line in enumerate(util.iterfile(fp)): | |
458 | line = line.splitlines()[0].rstrip() |
|
458 | line = line.splitlines()[0].rstrip() | |
459 | if not line: |
|
459 | if not line: | |
460 | # Ignore blank lines |
|
460 | # Ignore blank lines |
@@ -201,7 +201,7 b' class converter(object):' | |||||
201 | m = {} |
|
201 | m = {} | |
202 | try: |
|
202 | try: | |
203 | fp = open(path, 'r') |
|
203 | fp = open(path, 'r') | |
204 | for i, line in enumerate(fp): |
|
204 | for i, line in enumerate(util.iterfile(fp)): | |
205 | line = line.splitlines()[0].rstrip() |
|
205 | line = line.splitlines()[0].rstrip() | |
206 | if not line: |
|
206 | if not line: | |
207 | # Ignore blank lines |
|
207 | # Ignore blank lines |
General Comments 0
You need to be logged in to leave comments.
Login now