Khaled Hosny
cf08265cd5
Black
2024-02-06 15:47:35 +02:00
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
Chris Simpkins
7abf2e4c75
transition basestring
to str
...
https://github.com/fonttools/fonttools/issues/2232
2021-03-27 10:23:29 -04:00
Nikolaus Waxweiler
01328213c7
Remove __future__ imports
2019-08-09 12:20:13 +01:00
Cosimo Lupo
2b13c47d3e
textTools: safeEval = ast.literal_eval
...
https://github.com/fonttools/fonttools/pull/1139#pullrequestreview-86720679
2018-01-04 19:41:52 +00:00
Cosimo Lupo
4a20899cb4
textTools: use ast.literal_eval for safeEval
...
go back to using literal_eval, as nobody does complex expressions in TTX files,
and eval is evil.
Fixes https://github.com/fonttools/fonttools/issues/164
2018-01-04 16:53:54 +00:00
Cosimo Lupo
d2b58c4a86
textTools: add import sys
...
just to make my linter happy
2016-04-10 22:59:52 +01:00
Cosimo Lupo
895c54cf92
[textTools] reduce usage of str concat in pad
function
2015-09-09 09:52:31 +01:00
Cosimo Lupo
98e47a8746
[textTools] add 'pad' function to pad strings with null bytes
2015-08-07 18:23:41 +01:00
Behdad Esfahbod
b30e12ae00
More whitespace
2015-04-26 02:01:01 -04:00
Behdad Esfahbod
bd67253118
Some more whitespace fixes from pep8 tool
2015-04-26 01:59:01 -04:00
Behdad Esfahbod
a767e0298b
Fix XML reading of True/False after safeEval() revert
2014-09-30 18:54:47 -04:00
Behdad Esfahbod
8388a2e37c
Revert "Use ast.literal_eval to implement safeEval"
...
This reverts commit f5d123be5e342d91c2fa964ddae2844bc633d08e.
Fixes https://github.com/behdad/fonttools/issues/164
See issue for details.
2014-09-24 18:15:51 +03: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
f5d123be5e
Use ast.literal_eval to implement safeEval
...
Fixes https://github.com/behdad/fonttools/issues/75
2014-01-14 14:59:12 +08: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
f918ab4cf6
Fix typos
...
From
4d2d8c9642
2013-11-29 17:12:43 -05:00
Behdad Esfahbod
4069b39047
Simplify caselessSort()
2013-11-28 18:53:30 -05:00
Behdad Esfahbod
faaca764a1
py23 Fixup isinstance(..., str) issues
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
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
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
180ace6a5f
2to3 --fix=ne
2013-11-27 02:40:30 -05:00
Behdad Esfahbod
e72781bf37
Revert c386d54fe3f1bb12561126044cc5a7a7f0d80fe2
2013-11-25 03:52:30 -05:00
Behdad Esfahbod
c386d54fe3
Allow passing in locals variables to safeEval()
2013-11-24 09:37:49 -05:00
jvr
91bca42442
merging fixes & changes from delft-sprint-2012
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@611 4cde692c-a291-49d1-8350-778aa11640f8
2012-10-18 12:49:22 +00:00
pabs3
26a46b7fce
Patch #1296028 from Tomasz Wegrzanowski: improve performance with CJK fonts
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@512 4cde692c-a291-49d1-8350-778aa11640f8
2007-08-25 06:19:37 +00:00
Just
de7a3c4aa1
fixed buglet in num2binary()
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@72 4cde692c-a291-49d1-8350-778aa11640f8
2000-02-01 15:28:18 +00:00
Just
7842e56b97
Created a new library directory called "FreeLib". All OpenSource RFMKII components will reside there, fontTools being the flagship.
...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@2 4cde692c-a291-49d1-8350-778aa11640f8
1999-12-16 21:34:53 +00:00