mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Patch by Sean Silva to un-barf his computer by explicitly removing the '\n'
character instead of always the last character. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162767 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -237,9 +237,8 @@ for name in os.listdir(command_guide_path):
|
|||||||
# Otherwise, automatically extract the description.
|
# Otherwise, automatically extract the description.
|
||||||
file_subpath = os.path.join(command_guide_subpath, name)
|
file_subpath = os.path.join(command_guide_subpath, name)
|
||||||
with open(os.path.join(command_guide_path, name)) as f:
|
with open(os.path.join(command_guide_path, name)) as f:
|
||||||
it = iter(f)
|
title = f.readline().rstrip('\n')
|
||||||
title = it.next()[:-1]
|
header = f.readline().rstrip('\n')
|
||||||
header = it.next()[:-1]
|
|
||||||
|
|
||||||
if len(header) != len(title):
|
if len(header) != len(title):
|
||||||
print >>sys.stderr, (
|
print >>sys.stderr, (
|
||||||
|
Reference in New Issue
Block a user