Skip to content

Commit e71b8a6

Browse files
committed
Python 3 support for generate_indexes.py
1 parent e024279 commit e71b8a6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

generate_indexes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import os
1010
import os.path
1111
import sys
12-
import shutil
1312

1413

1514
def main():
@@ -21,7 +20,7 @@ def main():
2120
for linei, line in enumerate(f):
2221
parts = line.strip().split(":")
2322
if len(parts) != 2:
24-
print "Error parsing line {0}".format(linei)
23+
print("Error parsing line {0}".format(linei))
2524
sys.exit(1)
2625
releases.append((parts[0], parts[1]))
2726

@@ -54,7 +53,7 @@ def main():
5453

5554
# If we didn't find a match in the whole file, we need to stop and fix something.
5655
if contexti < len(context):
57-
print "Couldn't find where to insert Docs for other versions in {0}".format(releasedir)
56+
print("Couldn't find where to insert Docs for other versions in {0}".format(releasedir))
5857
sys.exit(0)
5958

6059
# Do we want to delete anything? Is there a table there already?

0 commit comments

Comments
 (0)