summarylogtreecommitdiffstats
path: root/use_python3.patch
diff options
context:
space:
mode:
authorMike Redd2015-07-06 01:38:46 -0500
committerMike Redd2015-07-06 01:38:46 -0500
commitc8c14f9139427f7553cbc5dfb0de04b8340cf9c5 (patch)
tree707fc97143996f06c92ab7b5ecaa1ea336334667 /use_python3.patch
downloadaur-dropbox-index-svn.tar.gz
Initial import
Diffstat (limited to 'use_python3.patch')
-rw-r--r--use_python3.patch25
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: