18 Commits

Author SHA1 Message Date
Nikolaus Waxweiler
d584daa8fd Blacken code 2022-12-13 11:26:36 +00:00
Just van Rossum
5fc65d7168
Misc py23 cleanups (#2243)
* Replaced all from ...py23 import * with explicit name imports, or removed completely when possible.
* Replaced tounicode() with tostr()
* Changed all BytesIO ans StringIO imports to from io import ..., replaced all UnicodeIO with StringIO.
* Replaced all unichr() with chr()
* Misc minor tweaks and fixes
2021-03-29 11:45:58 +02:00
Cosimo Lupo
d8c42ef7f0
codecs: handle errors different from 'strict' for extended mac encodings
Fixes #2132
2020-12-24 20:37:52 +01:00
Nikolaus Waxweiler
01328213c7 Remove __future__ imports 2019-08-09 12:20:13 +01:00
justvanrossum
723e7a1d3c updated inline github issue URLs 2019-03-06 16:01:28 +01:00
Behdad Esfahbod
37e6e6a380 Use dict comprehension now that we don't support Python 2.6 2015-06-11 17:05:15 -07:00
Behdad Esfahbod
db0dc7ba32 Fix Mac East Asian encodings
Ouch!
2015-04-26 01:37:18 -04:00
Behdad Esfahbod
5287b52d22 Whitespace 2015-04-26 00:49:36 -04:00
Behdad Esfahbod
0ac019ca2c Use native mac_romanian and mac_croatian encodings
Apparently they are implemented in Python, just miss aliases.

https://github.com/behdad/fonttools/issues/236
http://bugs.python.org/issue24043
2015-04-24 12:32:56 -07:00
Behdad Esfahbod
4c3fbd2600 Minor 2015-04-23 16:28:30 -07:00
Behdad Esfahbod
9f8742306c Minor 2015-04-20 10:00:18 -07:00
Behdad Esfahbod
fc7d3b52ed Upgrade Mac East Asian encodings to native implementation if available
Fixes https://github.com/behdad/fonttools/issues/236
2015-04-19 04:52:25 -07:00
Behdad Esfahbod
42fbc21069 Fix x_mac Chinese names 2015-04-19 04:46:12 -07:00
Behdad Esfahbod
5036a39e3f Normalize encoding name for lookup 2015-04-19 04:28:22 -07:00
Behdad Esfahbod
702b94f00a Use canonical Python encoding names 2015-04-19 04:24:55 -07:00
Behdad Esfahbod
6e01a6e350 Add Roman Croatian and Romanian encodings
Concludes https://github.com/behdad/fonttools/issues/236
2015-04-16 18:24:07 -07:00
Behdad Esfahbod
eefeb258ef Fix codecs end check
There was a bug before Python 3.4 where an extra byte was included
in e.end when the error callback was called.  That hided a bug in
the code.

Fixes build with Python 3.4+
2015-04-16 13:31:08 -07:00
Behdad Esfahbod
9d6d50e829 Add codecs for mac-extended East Asian encodings
Part of https://github.com/behdad/fonttools/issues/236

To be used in name table soon.
2015-04-16 03:10:18 -07:00