Show More
@@ -34,7 +34,11 b' def fetch_pi_file(filename):' | |||||
34 | return |
|
34 | return | |
35 | else: |
|
35 | else: | |
36 | # download it |
|
36 | # download it | |
37 | urllib.urlretrieve(ftpdir+filename,filename) |
|
37 | try : #python2 | |
|
38 | urllib.urlretrieve(ftpdir+filename,filename) | |||
|
39 | except : #python3 | |||
|
40 | import urllib.request | |||
|
41 | urllib.request.urlretrieve(ftpdir+filename,filename) | |||
38 |
|
42 | |||
39 | def compute_one_digit_freqs(filename): |
|
43 | def compute_one_digit_freqs(filename): | |
40 | """ |
|
44 | """ |
General Comments 0
You need to be logged in to leave comments.
Login now