[llvm-commits] [llvm] r162767 - /llvm/trunk/docs/conf.py
Bill Wendling
isanbard at gmail.com
Tue Aug 28 10:18:27 PDT 2012
Author: void
Date: Tue Aug 28 12:18:27 2012
New Revision: 162767
URL: http://llvm.org/viewvc/llvm-project?rev=162767&view=rev
Log:
Patch by Sean Silva to un-barf his computer by explicitly removing the '\n'
character instead of always the last character.
Modified:
llvm/trunk/docs/conf.py
Modified: llvm/trunk/docs/conf.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/conf.py?rev=162767&r1=162766&r2=162767&view=diff
==============================================================================
--- llvm/trunk/docs/conf.py (original)
+++ llvm/trunk/docs/conf.py Tue Aug 28 12:18:27 2012
@@ -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, (
More information about the llvm-commits
mailing list