25 Commits

Author SHA1 Message Date
Nikolaus Waxweiler
d584daa8fd Blacken code 2022-12-13 11:26:36 +00:00
Khaled Hosny
232b2ccbc4 Move the rest of py23 module to textTools
Change all imports to use textTools module, except the test_py23.py test
which is kept until we decide to remove the module (if ever).
2021-08-20 01:29:45 +02: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
Simon Cozens
76902b7129
[docs] fontTools.misc.* part 1 (#1956)
* Document misc.arrayTools
* Document misc.bezierTools
* Document cliTools
* Document eexec
2020-05-19 09:51:17 +01:00
Nikolaus Waxweiler
01328213c7 Remove __future__ imports 2019-08-09 12:20:13 +01:00
Cosimo Lupo
1c2fe9c37c [eexec] use bytes instead of str; add doctests to encrypt and decrypt functions 2015-10-22 19:54:53 +01:00
Behdad Esfahbod
b30e12ae00 More whitespace 2015-04-26 02:01:01 -04:00
Behdad Esfahbod
1ae29591ef from __future__ import absolute_import
Such that our Python 2 is closer to Python 3.

Part of https://github.com/behdad/fonttools/issues/77
2014-01-14 15:07:50 +08:00
Behdad Esfahbod
494d9d139e Remove eexecOp C extension
It hasn't been working:

  6102ba7500

And it's only used to load Type1 fonts, so who cares if the Python
implementation is slow...
2013-12-07 17:36:12 -05:00
Behdad Esfahbod
153ec40209 Fix a few pychecker warnings
Fixes https://github.com/behdad/fonttools/issues/58
2013-12-04 01:15:46 -05:00
Behdad Esfahbod
18316aa769 ps23 More bytes fixes. All ''join()'s fixed 2013-11-28 17:32:43 -05:00
Behdad Esfahbod
319c5fd10e py23 introduce byteord() and use it 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
30e691edd0 py23 from __future__ import print_function 2013-11-27 17:27:45 -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
14fb031125 Remove most uses of module string 2013-11-27 14:01:44 -05:00
Behdad Esfahbod
3ec6a25823 2to3 --fix=print with manual fixup 2013-11-27 04:57:33 -05:00
Behdad Esfahbod
ecbe4c87b5 2to3 --fix=numliterals with manual cleanup 2013-11-27 03:37:29 -05:00
pabs3
0682316b8c Fix loading the fontTools.misc.eexecOp module that speeds up fontTools.misc.eexec.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@578 4cde692c-a291-49d1-8350-778aa11640f8
2009-11-08 15:57:07 +00:00
jvr
d7787131e4 'python' implementation of hex functions
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@290 4cde692c-a291-49d1-8350-778aa11640f8
2002-07-23 09:26:19 +00:00
jvr
320b48a9bf eexecOp may be a global module or a submodule.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@185 4cde692c-a291-49d1-8350-778aa11640f8
2002-05-02 15:26:50 +00:00
jvr
f20ab43db0 eexecOp may also be a global module.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@141 4cde692c-a291-49d1-8350-778aa11640f8
2001-08-09 19:00:02 +00:00
Just
344757f42d minor cleanups
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@131 4cde692c-a291-49d1-8350-778aa11640f8
2001-04-20 18:39:21 +00:00
Just
6c53f88cf3 added fontTools.misc.eexec and a MacOS/PPC shared lib (eexecOp) that provides the C implementation.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@56 4cde692c-a291-49d1-8350-778aa11640f8
2000-01-12 19:15:12 +00:00