Changeset 391 for python/trunk/Tools/unicode/mkstringprep.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Tools/unicode/mkstringprep.py
r2 r391 2 2 3 3 if sys.maxunicode == 65535: 4 raise RuntimeError , "need UCS-4 Python"4 raise RuntimeError("need UCS-4 Python") 5 5 6 6 def gen_category(cats): … … 64 64 if m.group(1) == "Start": 65 65 if curname: 66 raise "Double Start",(curname, l)66 raise RuntimeError("Double Start", (curname, l)) 67 67 curname = m.group(2) 68 68 table = {} … … 71 71 else: 72 72 if not curname: 73 raise "End without start", l73 raise RuntimeError("End without start", l) 74 74 curname = None 75 75 continue … … 88 88 start, end = fields 89 89 except ValueError: 90 raise "Unpacking problem", l90 raise RuntimeError("Unpacking problem", l) 91 91 else: 92 92 start = end = fields[0] … … 147 147 del tables[0] 148 148 assert name == "B.1" 149 table = table.keys() 150 table.sort() 149 table = sorted(table.keys()) 151 150 print """ 152 151 b1_set = """ + compact_set(table) + """ … … 178 177 b3_exceptions[k] = u"".join(map(unichr,v)) 179 178 180 b3 = b3_exceptions.items() 181 b3.sort() 179 b3 = sorted(b3_exceptions.items()) 182 180 183 181 print """ … … 354 352 assert name == "C.6" 355 353 356 table = table.keys() 357 table.sort() 354 table = sorted(table.keys()) 358 355 359 356 print """ … … 368 365 assert name == "C.7" 369 366 370 table = table.keys() 371 table.sort() 367 table = sorted(table.keys()) 372 368 373 369 print """ … … 382 378 assert name == "C.8" 383 379 384 table = table.keys() 385 table.sort() 380 table = sorted(table.keys()) 386 381 387 382 print """ … … 396 391 assert name == "C.9" 397 392 398 table = table.keys() 399 table.sort() 393 table = sorted(table.keys()) 400 394 401 395 print """
Note:
See TracChangeset
for help on using the changeset viewer.