blob: b741d3df078ab024b0e35c7632bad8d51d907f06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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:
|