Kovid Goyal
0db9c42360
Use a polyglot IO class for device debug output
2019-03-28 12:20:13 +05:30
Kovid Goyal
57e11977b7
py3: get rid of __cmp__
2019-03-28 11:24:37 +05:30
Kovid Goyal
775ffdee21
EPUB Output: Sort the entries in the manifest by spine position/media-type/filename
2019-03-28 11:00:41 +05:30
Kovid Goyal
cf1a6aea96
Remove unused code
2019-03-28 09:27:18 +05:30
Kovid Goyal
080c19b966
PDF Output: Fix "stroke-dasharray" lines in SVG images in the input document not being rendered correctly. Fixes #1821923 [ebook-convert pdf plugin does not render dasharray]( https://bugs.launchpad.net/calibre/+bug/1821923 )
...
Merge branch 'master' of https://github.com/jimbojw/calibre
2019-03-27 19:54:30 +05:30
jimbojw
c22c03b76a
Fixing stroke-dasharray rendering bug ( #1821923 )
2019-03-27 09:43:10 -04:00
Kovid Goyal
9a676b0e06
py3: Replace sort(cmp=) with sort(key=)
2019-03-27 08:08:14 +05:30
Kovid Goyal
fdc64f40ad
sys.maxint -> sys.maxsize
2019-03-27 07:21:14 +05:30
Kovid Goyal
4fa69111ec
Exclude some linux specific modules from import tests on other platforms
2019-03-27 07:11:04 +05:30
Kovid Goyal
f0ab48d1a9
Misc fixes for previous py3 PR
2019-03-27 06:53:58 +05:30
Kovid Goyal
68afcf4598
Clean up python module import test
2019-03-27 06:52:35 +05:30
Kovid Goyal
55b39e16bb
Merge branch 'py3' of https://github.com/eli-schwartz/calibre
2019-03-27 05:55:10 +05:30
Eli Schwartz
02be4edee2
test: try to make test_import work better without assuming cwd
...
Allows it to run properly on Windows.
2019-03-26 16:49:02 -04:00
Eli Schwartz
a75b0730a7
python3: do not use types.*Type which is an alias for str
...
Just compare to (str, unicode_type) directly, and handle the related
python3 reclassification.
2019-03-26 16:12:18 -04:00
Eli Schwartz
24f504f16b
python3: remove more cStringIO
2019-03-26 16:12:18 -04:00
Eli Schwartz
4919373608
python3: do not decode uuid4 hex, as it is always a str()
2019-03-26 16:12:18 -04:00
Eli Schwartz
9023ea8947
python3: add Cookie wrapper to polyglot
2019-03-26 16:12:18 -04:00
Eli Schwartz
97ab4acce5
python3: reduce use of cmp when key can be used instead
...
cmp does not exist on python3
2019-03-26 16:12:17 -04:00
Eli Schwartz
06d8560ab2
remove unused files which import non-existing code
2019-03-26 16:12:17 -04:00
Eli Schwartz
67f3ca17dd
test: add test to try importing every file
...
The testsuite does not currently exercise every file, but we can at
least try importing it to make sure it isn't obviously broken. This
additionally helps to iterate through python3 syntax-level
incompatibilities.
2019-03-26 16:12:17 -04:00
Eli Schwartz
564f053c02
python3: add reprlib wrapper to polyglot
2019-03-26 15:49:40 -04:00
Eli Schwartz
696afe85bd
python3: convert filter iterables to list in order to access as a list
2019-03-26 15:49:40 -04:00
Eli Schwartz
2c156d3000
test: fix broken netifaces check
...
This will always return True on python2
[] > 1
On python3 it is instead an error, because you cannot compare a list to
an int -- instead, we want to compare the length of the returned list,
to see how many interfaces are available.
2019-03-26 15:49:40 -04:00
Eli Schwartz
2271463d27
python3: don't require bytestring for unrardll comments
...
unrardll explictly decodes to unicode
Note: unrar.py already uses unicode_literals
2019-03-26 15:49:40 -04:00
Eli Schwartz
b6d4442b23
python3: mark bytestring as needed
2019-03-26 15:49:40 -04:00
Eli Schwartz
7196fa0773
python3: mark zlib plugin as only existing on python2
...
Fixes test failure due to checking whether all plugins work, and
considering this a plugin even though it is not.
2019-03-26 15:49:40 -04:00
Eli Schwartz
6d6509df57
python3: make qt image test work on python3
...
QByteArrays are natively bytes and ended up looking like this: u"b'xpm'"
Instead use the builtin method to get the data back, and decode it to
unicode.
2019-03-26 15:49:39 -04:00
Eli Schwartz
727e65a203
python3: add httplib/http.client polyglot wrapper
2019-03-26 15:49:39 -04:00
Eli Schwartz
bfcb301fe3
python3: add httplib/http.client polyglot wrapper
2019-03-26 15:10:40 -04:00
Eli Schwartz
92c621c718
python3: remove deprecated use of contextlib.nested
...
Using `with Foo() as a, Bar() as b:` is introduced in python 2.7 and
deprecates the use of nested(), which is removed entirely in python3
2019-03-26 15:10:40 -04:00
Eli Schwartz
d7410fe7b3
python3: add polyglot wrapper for html.entities/htmlentitydefs
2019-03-26 15:10:40 -04:00
Kovid Goyal
b62022ac7d
Updata NASA
...
Merge branch 'patch-1' of https://github.com/Datalore740/calibre
2019-03-26 21:24:09 +05:30
Datalore740
002006a148
Fixed dead RSS feeds.
...
All of the NASA RSS feeds have been deprecated, so I replaced them, and changed the some of the news topics entirely.
2019-03-26 08:17:57 -07:00
Kovid Goyal
0aee163cf7
...
2019-03-26 18:03:17 +05:30
Kovid Goyal
e1c7ab579d
...
2019-03-26 14:53:32 +05:30
Kovid Goyal
1fed6604e0
py3: port use of raw_input
2019-03-26 14:45:36 +05:30
Kovid Goyal
40d631f39a
Only store tweaks that have been changed from default values
2019-03-26 12:10:02 +05:30
Kovid Goyal
05ef1457e8
Dont store tweaks in a .py file
...
Use a .json file instead. As with the previosu migrations of pickle and
.py config files this causes the settings to become disjoint if an
upgrage/downgrade is done.
2019-03-26 11:25:15 +05:30
Kovid Goyal
9b0ed4204d
...
2019-03-26 08:24:54 +05:30
Kovid Goyal
f68c1f2672
DRYer
2019-03-26 08:24:12 +05:30
Kovid Goyal
f66d6f9fcf
Ensure init symbol is exported on py3
2019-03-26 08:14:46 +05:30
Kovid Goyal
9cecd227bc
Fix #1821635 [scrolling in flow mode (under page flip/scrolling options) percentages can not be increased over 100%]( https://bugs.launchpad.net/calibre/+bug/1821635 )
2019-03-26 08:05:41 +05:30
Kovid Goyal
48d4c73f88
py3: Fix load_plugin() not handling load failures
2019-03-26 07:57:37 +05:30
Kovid Goyal
1c846769db
...
2019-03-25 21:05:07 +05:30
Kovid Goyal
390b0d45c1
Dont use a python file to store catalog section templates
2019-03-25 20:18:19 +05:30
Kovid Goyal
7bd05cbfeb
Another bs4 incompat to port
2019-03-25 20:01:13 +05:30
Kovid Goyal
d9ab752f94
DRYer
2019-03-25 18:54:01 +05:30
Kovid Goyal
6d3fcc853e
Cant use polyglot in plugins_mirror
2019-03-25 17:54:42 +05:30
Kovid Goyal
5918acabad
Misc fixes for the last py3 porting merge
2019-03-25 16:03:25 +05:30
Kovid Goyal
c8688930ad
Fix various itervalues() that dict_fixes missed
2019-03-25 15:39:39 +05:30