diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-11-25 09:13:37 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-11-25 09:13:37 (GMT) |
commit | b5c980b8028af0876e40f71c94b82cd02e327bf0 (patch) | |
tree | a72f03661f7aab2ef706447951cec27da4fd0f49 /Tools/unicode/makeunicodedata.py | |
parent | 05ced6aa761bab7348e95a479b6f791e636ceae7 (diff) | |
download | cpython-b5c980b8028af0876e40f71c94b82cd02e327bf0.zip cpython-b5c980b8028af0876e40f71c94b82cd02e327bf0.tar.gz cpython-b5c980b8028af0876e40f71c94b82cd02e327bf0.tar.bz2 |
Add unidata_version. Bump generator version number.
Diffstat (limited to 'Tools/unicode/makeunicodedata.py')
-rw-r--r-- | Tools/unicode/makeunicodedata.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Tools/unicode/makeunicodedata.py b/Tools/unicode/makeunicodedata.py index f7dcad5..c948312 100644 --- a/Tools/unicode/makeunicodedata.py +++ b/Tools/unicode/makeunicodedata.py @@ -1,7 +1,7 @@ # # (re)generate unicode property and type databases # -# this script converts a unicode 3.0 database file to +# this script converts a unicode 3.2 database file to # Modules/unicodedata_db.h, Modules/unicodename_db.h, # and Objects/unicodetype_db.h # @@ -17,6 +17,7 @@ # 2002-10-18 mvl update to Unicode 3.2 # 2002-10-22 mvl generate NFC tables # 2002-11-24 mvl expand all ranges, sort names version-independently +# 2002-11-25 mvl add UNIDATA_VERSION # # written by Fredrik Lundh (fredrik@pythonware.com) # @@ -24,8 +25,10 @@ import sys SCRIPT = sys.argv[0] -VERSION = "2.1" +VERSION = "2.2" +# The Unicode Database +UNIDATA_VERSION = "3.2.0" UNICODE_DATA = "UnicodeData.txt" COMPOSITION_EXCLUSIONS = "CompositionExclusions.txt" @@ -192,6 +195,7 @@ def makeunicodedata(unicode, trace): fp = open(FILE, "w") print >>fp, "/* this file was generated by %s %s */" % (SCRIPT, VERSION) print >>fp + print >>fp, '#define UNIDATA_VERSION "%s"' % UNIDATA_VERSION print >>fp, "/* a list of unique database records */" print >>fp, \ "const _PyUnicode_DatabaseRecord _PyUnicode_Database_Records[] = {" |