diff options
Diffstat (limited to 'use_python3.patch')
-rw-r--r-- | use_python3.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/use_python3.patch b/use_python3.patch new file mode 100644 index 000000000000..b741d3df078a --- /dev/null +++ b/use_python3.patch @@ -0,0 +1,25 @@ +--- a/ __init__.py ++++ b/__init__.py +@@ -307,11 +307,11 @@ + + def crawl(path, back=None, recursive=False, template_file=None): + if not os.path.exists(path): +- print 'ERROR: Path %s does not exists' % path ++ print('ERROR: Path %s does not exists' % path) + return + + if not os.path.isdir(path): +- print 'ERROR: Path %s is not a directory' % path ++ print('ERROR: Path %s is not a directory' % path) + return + + # get contents of the directory +@@ -334,7 +334,7 @@ + # render directory contents + html_render(path, back, dirs, files, template_file) + +- print 'Created index.html for %s' % os.path.realpath(path) ++ print('Created index.html for %s' % os.path.realpath(path)) + + # crawl subdirectories + for dir in dirs: |