Show More
@@ -19,7 +19,7 b' from __future__ import division' | |||
|
19 | 19 | |
|
20 | 20 |
try |
|
21 | 21 | from urllib import urlretrieve |
|
22 | except : #python3 | |
|
22 | except ImportError: #python3 | |
|
23 | 23 | from urllib.request import urlretrieve |
|
24 | 24 | |
|
25 | 25 | davinci_url = "http://www.gutenberg.org/cache/epub/5000/pg5000.txt" |
@@ -78,7 +78,7 b" if __name__ == '__main__':" | |||
|
78 | 78 | |
|
79 | 79 |
try |
|
80 | 80 | cwd = os.path.abspath(os.getcwdu()) |
|
81 | except : #python3 | |
|
81 | except AttributeError: #python3 | |
|
82 | 82 | cwd = os.path.abspath(os.getcwd()) |
|
83 | 83 | fnames = [ os.path.join(cwd, 'davinci%i.txt'%i) for i in range(n)] |
|
84 | 84 | tic = time.time() |
General Comments 0
You need to be logged in to leave comments.
Login now