Skip to content
Snippets Groups Projects
Commit 1a825c97 authored by Christoph Groth's avatar Christoph Groth
Browse files

make setup.py work again with python 2.6

parent 39c70123
No related branches found
Tags v0.1.0
No related merge requests found
......@@ -75,10 +75,11 @@ class build_tut(Command):
os.mkdir(TUT_DIR)
for in_fname in glob.glob(TUT_GLOB):
out_fname = os.path.join(TUT_DIR, os.path.basename(in_fname))
with open(in_fname) as in_file, open(out_fname, 'w') as out_file:
for line in in_file:
if not line.startswith(TUT_HIDDEN_PREFIX):
out_file.write(line)
with open(in_fname) as in_file:
with open(out_fname, 'w') as out_file:
for line in in_file:
if not line.startswith(TUT_HIDDEN_PREFIX):
out_file.write(line)
# Our version of the "build" command also makes sure the tutorial is made.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment