summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-08-28 17:18:27 +0000
committerBill Wendling <isanbard@gmail.com>2012-08-28 17:18:27 +0000
commit96da080b88472efa098e8a004bd205713c89e513 (patch)
tree49c48577f9dcd92e8d309c6fe45074a90c64960b /docs/conf.py
parent621b77ade2ff46d1d8594bddee6931b2f4a14706 (diff)
downloadllvm-96da080b88472efa098e8a004bd205713c89e513.tar.gz
llvm-96da080b88472efa098e8a004bd205713c89e513.tar.bz2
llvm-96da080b88472efa098e8a004bd205713c89e513.tar.xz
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
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/conf.py b/docs/conf.py
index de0585ddb0..f7b3a07de8 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -237,9 +237,8 @@ for name in os.listdir(command_guide_path):
# 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, (