Kovid Goyal
29cd8d64ea
Change shebangs to python from python2
...
Also remove a few other miscellaneous references to python2
2020-08-22 18:47:51 +05:30
Eli Schwartz
45ca4c7934
py3: merge multiline __future__ imports to not confuse 2to3
2019-05-27 00:41:14 -04:00
Kovid Goyal
d324e776b5
Greatly simplify unicode_to_number
...
This also has the virtue of making number parsing locale independent, as
is required for parsing CSS literals
2019-05-01 17:10:21 +05:30
Eli Schwartz
4f545af415
autopep8
2019-03-24 01:18:27 -04:00
Eli Schwartz
a623717d96
python3: apply various fixes from python-modernize "dict_six"
...
Imports were then fixed and consolidated to derive from the internal
polyglot.builtins
2019-03-24 01:18:27 -04:00
Kovid Goyal
2d21a8efa2
Some more fixes for the unicode type
...
Now replaced in all dynamically loaded code. Recipes/metadata
sources/etc. In the case of recipes, since they get compiled by calibre
we simply make the unicode/unichr names available, no need for any
changes to the actual recipes themselves.
2019-03-13 12:04:47 +05:30
Flaviu Tamas
01fbf09c0b
Undo redundant imports & new-style raises
...
New-style rasies need to be redone in a py2-friendly way, and the
redudant imports are redudnant and can safely be removed
2018-09-10 12:11:29 +05:30
Flaviu Tamas
0889ee85ec
Fix syntax errors
...
Command used:
futurize --no-diffs -f libfuturize.fixes.fix_print_with_import -f lib2to3.fixes.fix_throw -f lib2to3.fixes.fix_numliterals -f lib2to3.fixes.fix_except -f lib2to3.fixes.fix_exec -f lib2to3.fixes.fix_raise -f lib2to3.fixes.fix_tuple_params -f lib2to3.fixes.fix_ne -j20 -w -n setup recipes src manual setup.py recipes/*.recipe
And manual adjustments of print((...)) -> print(...)
2018-09-10 12:11:28 +05:30
Kovid Goyal
cf04fd266d
DRYer
2016-07-17 09:55:39 +05:30
Kovid Goyal
bb4fe4d924
Serialization of parsed fonts
2016-06-30 13:49:43 +05:30
Kovid Goyal
b0b7a59afd
Code to parse the font shorthand property
2016-06-30 11:07:51 +05:30
Kovid Goyal
f1122ac05f
Discard empty strings when parsing font-family
2016-06-30 08:24:17 +05:30
Kovid Goyal
0643da49e0
...
2016-06-30 08:22:19 +05:30
Kovid Goyal
553137015e
Code to parse font family values
2016-06-30 08:18:15 +05:30
Kovid Goyal
538f0a7186
A single entry point to run all tests
2016-06-21 23:12:06 +05:30
Kovid Goyal
ef09e886b3
Change all shebangs to use python2
2015-01-23 19:08:21 +05:30
Kovid Goyal
1359f475af
Edit Book: Live CSS: Fix clicking on link to go to style definition not working if the stylesheet contains CSS 3 media queries
...
Adds support for CSS 3 media query parsing to tinycss
2014-06-08 18:09:47 +05:30
Kovid Goyal
397b7cc4e1
Edit Book: Live CSS: Fix going to style declaration in the editor not working correctly when the stylesheet contains @font-face rules
2014-06-07 14:38:27 +05:30
Kovid Goyal
322e6021e0
...
2014-05-22 18:58:26 +05:30
Kovid Goyal
e7387aab1a
Add tokenizer tests into the --test-build test suite
2014-05-22 16:36:23 +05:30
Kovid Goyal
04b45413c6
Testing for the C tokenizer
2014-05-22 15:23:25 +05:30
Kovid Goyal
f38af40146
Port the tinycss test suite to use the unittest module
2014-05-21 13:05:05 +05:30