f.closed
if uri.scheme == 'http':
pw = getpass()
- print "http not yet implemented"
+ print("http not yet implemented")
if uri.scheme == 'https':
- print "https not yet implemented"
+ print("https not yet implemented")
def filter(self,query):
(key, name) = query.split(':')
f.closed
if uri.scheme == 'http':
pw = getpass()
- print "http not yet implemented"
+ print("http not yet implemented")
if uri.scheme == 'https':
pw = getpass()
headers = {"User-Agent": "Mozilla/5.0",
res = handle.request('GET', self.uri.path, "", headers)
r = handle.getresponse()
if r.status != 200:
- print "Failed to connect! Wrong Password ?"
+ print("Failed to connect! Wrong Password ?")
sys.exit(5)
self.data = r.read()
handle.close()
im.save(outfile, im.format)
self.outfiles.append(outfile)
except IOError:
- print "cannot create thumbnail for '%s'" % infile
+ print("cannot create thumbnail for '%s'" % infile)
self.outfiles.append(self.picture)
def db_xml(self):