aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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, (