12 Commits

Author SHA1 Message Date
Kovid Goyal
53b74283a4
sort imports in all python files 2024-03-30 13:02:22 +05:30
luz paz
df439bedd1 FIx typos
Found via `codespell -q 3 -S./Changelog.*,./resources/dictionaries  -L alo,ans,pard,ro`
2022-07-18 21:52:03 -04:00
Eli Schwartz
887f620406
py3 porting cleanup: remove unneeded indirect import of builtins
filter, map, range, and zip were proxied through polyglot.builtins to
ensure that their `future_builtins` forms were used. In python3 this is
no longer needed and they don't need to be imported at all, from
anywhere. So, don't.
2021-10-20 21:43:43 -04:00
Zbigniew Jędrzejewski-Szmek
9d63b6ae56 Drop (object) from class definitions
Python2 had old-style classes (no "(object)"), and new style classes (with
"object"). Under Py3 this is a noop, so let's drop it to make the code
a bit shorter.
2021-09-30 09:23:56 +02:00
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
Kovid Goyal
e25d26a628
Micro-optimization
Also dont use plain asserts in tests
2019-11-07 10:36:08 +05:30
Kovid Goyal
36ff1b15b8
py3: port a bunch of places where individual byes are accessed from a bytestring 2019-07-12 05:52:07 +05:30
Kovid Goyal
152689812a
py3: Port use of Exception.message 2019-04-02 15:04:26 +05:30
Kovid Goyal
40491089f1
py3: Port use of maketrans 2019-04-01 14:06:54 +05:30
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
Kovid Goyal
fc37cc1aea ... 2015-02-22 10:10:02 +05:30
Kovid Goyal
bd0313c357 Rename css_selectors.parse to css_selectors.parser 2015-02-21 09:41:06 +05:30