~vono22/narau/fdroid

« back to all changes in this revision

Viewing changes to NarauDBInfo/narau_db_infos.py

  • Committer: Yvon Tanguy
  • Date: 2012-11-28 21:08:33 UTC
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: vono22@yahoo.fr-20121128210833-9udiw6h7ohft2yy5
Fix python scripts for python 3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
                        md5.update(buff)
72
72
                        buff = file.read(4096)  
73
73
        except e:
74
 
                print str(e)
 
74
                print(str(e))
75
75
        finally:
76
76
                file.close()
77
77
        gz_md5 = md5.hexdigest()
78
78
        
79
79
        # print the result:
80
 
        print db_filename + " " + db_creation_time + " " + db_size + " " + gz_size + " " + gz_md5 + " <insert urls>"
 
80
        print(db_filename + " " + db_creation_time + " " + db_size + " " + gz_size + " " + gz_md5 + " <insert urls>")
81
81
 
82
82
        # remove the original db file
83
83
        os.remove(db_filename)
92
92
                        version_code = match.group(2)
93
93
                        break
94
94
 
95
 
print "# db_filename db_creation_time db_size gz_size gz_md5 gz_download_url_1 gz_download_url_2..."
96
 
print "NarauVersionCode:" + version_code
 
95
print("# db_filename db_creation_time db_size gz_size gz_md5 gz_download_url_1 gz_download_url_2...")
 
96
print("NarauVersionCode:" + version_code)
97
97
 
98
98
# Dictionary databases:
99
99
regex = re.compile(DB_DICT_PATTERN)