Skip to content

Commit

Permalink
Patch by Sean Silva to un-barf his computer by explicitly removing th…
Browse files Browse the repository at this point in the history
…e '\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
  • Loading branch information
isanbard committed Aug 28, 2012
1 parent 621b77a commit 96da080
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,8 @@
# Otherwise, automatically extract the description.
file_subpath = os.path.join(command_guide_subpath, name)
with open(os.path.join(command_guide_path, name)) as f:
it = iter(f)
title = it.next()[:-1]
header = it.next()[:-1]
title = f.readline().rstrip('\n')
header = f.readline().rstrip('\n')

if len(header) != len(title):
print >>sys.stderr, (
Expand Down

0 comments on commit 96da080

Please sign in to comment.