tools/userland-fetch
changeset 832 d0946a4ddb78
parent 800 2ad056ed89ec
child 3533 0b8107a40da7
child 3979 46744fa00de4
equal deleted inserted replaced
831:9a41c3b678fa 832:d0946a4ddb78
    29 #
    29 #
    30 
    30 
    31 import os
    31 import os
    32 import sys
    32 import sys
    33 import shutil
    33 import shutil
    34 from urllib import splittype, urlopen
    34 from urllib import splittype
       
    35 from urllib2 import urlopen
    35 import hashlib
    36 import hashlib
    36 
    37 
    37 def printIOError(e, txt):
    38 def printIOError(e, txt):
    38 	""" Function to decode and print IOError type exception """
    39 	""" Function to decode and print IOError type exception """
    39 	print "I/O Error: " + txt + ": "
    40 	print "I/O Error: " + txt + ": "