12 Commits

Author SHA1 Message Date
un-pogaz
ac6912565a always use raw-string for regex (auto-fix)
ruff 'RUF039'
2025-01-24 11:14:20 +01:00
un-pogaz
19994000c9 use f-string instead of format call (extra-edit)
ruff 'UP030,UP032' --extend-exclude "src/calibre/*" !partial
2025-01-24 11:14:16 +01:00
un-pogaz
02854d8b8c convert some legacy percent format (extra-edit) 2025-01-24 11:14:16 +01:00
un-pogaz
0560b429bf convert some legacy percent format (auto-fix)
ruff 'UP031'
2025-01-24 11:14:16 +01:00
un-pogaz
5572105076 upgrade code to Python 3 (auto-fix)
ruff 'UP'
2025-01-24 11:14:16 +01:00
Kovid Goyal
53b74283a4
sort imports in all python files 2024-03-30 13:02:22 +05:30
Kovid Goyal
9ff27782de
Remove useless __future__ imports
Not needed on python3
2020-08-22 18:47:55 +05:30
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
746381d179
A few more etree.fromstring 2019-12-29 22:02:16 +05:30
Eli Schwartz
45ca4c7934
py3: merge multiline __future__ imports to not confuse 2to3 2019-05-27 00:41:14 -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
Kovid Goyal
bb442dee28 Use SVG icons instead of an icon font 2016-04-07 22:12:42 +05:30