722 Commits

Author SHA1 Message Date
Behdad Esfahbod
6962f0cfb2 py23 XML encoding fixes
Name table entries that are Unicode are written out as native Unicode
now text in the XML now.
2013-11-28 17:32:43 -05:00
Behdad Esfahbod
5f6418d9e1 py23 Turn Unicode XML parsing on; more bytes fixes 2013-11-28 17:32:43 -05:00
Behdad Esfahbod
18316aa769 ps23 More bytes fixes. All ''join()'s fixed 2013-11-28 17:32:43 -05:00
Behdad Esfahbod
d3689390a6 py23 Fix up byteord() implementation 2013-11-28 17:32:43 -05:00
Behdad Esfahbod
3e8795d99a py23 Use io.BytesIO to replace StringIO.StringIO 2013-11-28 17:32:43 -05:00
Behdad Esfahbod
821572c9a9 py23 Add bytesjoin() 2013-11-28 17:32:43 -05:00
Behdad Esfahbod
1fcd04db70 py23 Fix sstruct exception format 2013-11-28 17:32:43 -05:00
Behdad Esfahbod
a0cd41ddf0 py23 Automatically convert str/bytes types in sstruct.pack/unpack 2013-11-28 17:32:43 -05:00
Behdad Esfahbod
5cf4008336 py23 tostr()/tobytes() and using them
ttf->xml seems to be mostly working now.
2013-11-28 17:32:43 -05:00
Behdad Esfahbod
b7fd2e1913 py23 Remove uses of __cmp__ and cmp() 2013-11-28 17:32:42 -05:00
Behdad Esfahbod
960280bbd6 py23 Use more Tag() 2013-11-28 17:32:42 -05:00
Behdad Esfahbod
319c5fd10e py23 introduce byteord() and use it 2013-11-28 17:32:42 -05:00
Behdad Esfahbod
b21c9d36ee [subset] py23 fix str usage 2013-11-28 17:32:42 -05:00
Behdad Esfahbod
d2f5d2f8b4 py23 use Tag in ttLib/__init__ 2013-11-28 17:32:42 -05:00
Behdad Esfahbod
32c10eecff py23 from __future__ import division and adjust divisions 2013-11-28 17:32:42 -05:00
Behdad Esfahbod
a030a0d25f [subset] py23 from __future__ import division and adjust divisions 2013-11-27 17:46:15 -05:00
Behdad Esfahbod
aa9cc89b29 [inspect] py23 from __future__ import division and adjust divisions 2013-11-27 17:46:06 -05:00
Behdad Esfahbod
30e691edd0 py23 from __future__ import print_function 2013-11-27 17:27:45 -05:00
Behdad Esfahbod
cfeafd79cd [subset] py23 from __future__ import print_function 2013-11-27 17:27:35 -05:00
Behdad Esfahbod
b21c903fa3 [inspect] py23 from __future__ import print_function 2013-11-27 17:27:22 -05:00
Behdad Esfahbod
ac4672e451 py23 Introduce Tag to autoconvert tag types 2013-11-27 16:44:53 -05:00
Behdad Esfahbod
b7a2d797a4 py23 Use bytechr() instead of chr() 2013-11-27 15:25:00 -05:00
Behdad Esfahbod
7ed91eca1e py23 import in all nontrivial source files and unused import cleanup 2013-11-27 15:25:00 -05:00
Behdad Esfahbod
36e20ff473 [subset] py23 import 2013-11-27 15:25:00 -05:00
Behdad Esfahbod
bb0beb7385 2to3 Use py23 to close some of the bytes/str/unicode gaps 2013-11-27 15:25:00 -05:00
Behdad Esfahbod
4a818a2b98 [inspect] Use py23 2013-11-27 15:25:00 -05:00
Behdad Esfahbod
503179f2ed Add py23 compat layer 2013-11-27 15:24:57 -05:00
Behdad Esfahbod
9005774c10 2to3 --fix=unicode equivalents
Remove usage of unicode module.  The rest are mostly false
positives.

Remains u'' in macUtils.py and u"" and unichr in M_E_T_A_.py.
2013-11-27 14:01:45 -05:00
Behdad Esfahbod
c2297cd41d 2to3 --fix=dict with manual cleanup 2013-11-27 14:01:45 -05:00
Behdad Esfahbod
6890d050ef [subset] 2to3 --fix=dict with manual cleanup 2013-11-27 14:01:45 -05:00
Behdad Esfahbod
55e7d79ecf 2to3 manual lambda syntax fix 2013-11-27 14:01:44 -05:00
Behdad Esfahbod
e1d97b8277 2to3 replace use of module new 2013-11-27 14:01:44 -05:00
Behdad Esfahbod
2a9b86816e 2to3 --fix=basestring with manual fixup 2013-11-27 14:01:44 -05:00
Behdad Esfahbod
3e78b60ff6 [inspect] 2to3 --fix=basestring with manual fixup 2013-11-27 14:01:44 -05:00
Behdad Esfahbod
14fb031125 Remove most uses of module string 2013-11-27 14:01:44 -05:00
Behdad Esfahbod
b774f9f684 2to3 --fix=types manual additions
Don't know why the tool didn't catch these.
2013-11-27 14:01:44 -05:00
Behdad Esfahbod
223273f792 2to3 --fix=except 2013-11-27 14:01:37 -05:00
Behdad Esfahbod
b92c08059d 2to3 --fix=imports with manual fixups 2013-11-27 05:05:46 -05:00
Behdad Esfahbod
3ec6a25823 2to3 --fix=print with manual fixup 2013-11-27 04:57:33 -05:00
Behdad Esfahbod
d7e8d81a7a [inspect] 2to3 --fix=print with manual fixup 2013-11-27 04:57:17 -05:00
Behdad Esfahbod
4cd467c853 [subset] 2to3 --fix=print with manual fixup 2013-11-27 04:57:06 -05:00
Behdad Esfahbod
002c32fd0d 2to3 --fix=types with manual fixups 2013-11-27 04:48:20 -05:00
Behdad Esfahbod
e5ca79699d 2to3 --fix=map with manual cleanup 2013-11-27 04:38:16 -05:00
Behdad Esfahbod
ac1b435946 2to3 --fix=idioms 2013-11-27 04:15:34 -05:00
Behdad Esfahbod
c2e2e835ec [subset] 2to3 --fix=idioms 2013-11-27 04:15:27 -05:00
Behdad Esfahbod
fa5f2e85ab 2to3 --fix=zip with manual cleanup 2013-11-27 04:13:15 -05:00
Behdad Esfahbod
28aeabb08b 2to3 --fix=filter 2013-11-27 04:07:28 -05:00
Behdad Esfahbod
7cc6d271ac 2to3 --fix=long with manual cleanup 2013-11-27 04:00:15 -05:00
Behdad Esfahbod
4b775ee5f1 2to3 --fix=itertools 2013-11-27 03:48:06 -05:00
Behdad Esfahbod
ecbe4c87b5 2to3 --fix=numliterals with manual cleanup 2013-11-27 03:37:29 -05:00