We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23625a7 commit 72ce9fdCopy full SHA for 72ce9fd
update-ends.py
@@ -64,9 +64,8 @@ def has_end(filename, template):
64
with open(filename, 'r') as f:
65
# get the last linecount lines
66
filelines = collections.deque(f, maxlen=linecount)
67
- templatelines = template.rstrip('\n').split('\n')
68
69
- for templateline, fileline in zip(templatelines, filelines):
+ for templateline, fileline in zip(template.split('\n'), filelines):
70
if '{' not in templateline:
71
# It doesn't contain formatting, we can do something with it.
72
if templateline.strip() != fileline.strip():
0 commit comments