Commit Graph

37610 Commits

Author SHA1 Message Date
Kovid Goyal c32b7daafa py3: Port use of urlparse in recipes 2019-04-01 14:16:37 +05:30
Kovid Goyal 40491089f1 py3: Port use of maketrans 2019-04-01 14:06:54 +05:30
Kovid Goyal 569c576293 py3: port use of urllib in recipes 2019-04-01 13:57:21 +05:30
Kovid Goyal 930376c036 py3: Port calls to ugettext() 2019-03-31 20:13:22 +05:30
Kovid Goyal 67814d2186 py3: misc fixes to get bootstrapping (almost) working 2019-03-31 19:58:00 +05:30
Kovid Goyal f809313dc5 py3: Couple of fixes for individual byte access in the xz module 2019-03-31 19:42:10 +05:30
Kovid Goyal 65146815d7 pep8 2019-03-31 19:40:00 +05:30
Kovid Goyal 4a3c9ca32f py3: Fix checking of iso639 translations 2019-03-31 18:38:32 +05:30
Kovid Goyal e73dbb0f99 py3: Port calls to json.dump() 2019-03-31 18:30:59 +05:30
Kovid Goyal 8b280c03c3 py3: Port RTF metadata module 2019-03-31 13:45:46 +05:30
Kovid Goyal dc15aff051 py3: Remove another use of cStringIO 2019-03-31 10:05:15 +05:30
Kovid Goyal c33768b35e Move the python imports test out of the build test module
The build test is designed to run with frozen calibre, where the
source files may not be available. So run it only as part of
the setup test suite.
2019-03-31 09:31:38 +05:30
Kovid Goyal 496d8beed8 py3: more cStringIO 2019-03-30 14:55:32 +05:30
Kovid Goyal dec0a11ec0 py3: replace more cStringIO 2019-03-30 14:46:04 +05:30
Kovid Goyal f149427104 py3: Port use of (un)hexlify() 2019-03-30 14:34:48 +05:30
Kovid Goyal fcd5700306 py3: port use as base64 module 2019-03-30 13:01:47 +05:30
Kovid Goyal a0afe775ba py3: Disambiguate str() 2019-03-29 20:39:43 +05:30
Kovid Goyal 6bd02c1aae py3: Disambiguate str() 2019-03-29 20:26:04 +05:30
Kovid Goyal d4c95b0df6 Remove not working recipe
Fixes #864 (Deleted bloomberg recipe, change in service)
2019-03-29 18:45:40 +05:30
Kovid Goyal e9ef5296e7 Fix #1821968 [Epub Catalog using some former value](https://bugs.launchpad.net/calibre/+bug/1821968) 2019-03-29 13:16:23 +05:30
Kovid Goyal a67857483f EPUB/MOBI Catalogs: Fix presets not being applied for some options. Fixes #1821968 [Epub Catalog using some former value](https://bugs.launchpad.net/calibre/+bug/1821968) 2019-03-29 09:00:04 +05:30
Kovid Goyal 4ffffb143d Adding books: When adding with auto-merge and auto-convert enabled, also run conversions for books into which the added files are merged. Fixes #1822018 [Does not auto-convert when adding existing book with overwrite selected](https://bugs.launchpad.net/calibre/+bug/1822018) 2019-03-28 14:38:50 +05:30
Kovid Goyal b0543d1bb5 Manage authors dialog: Add an etry to the right click menu to show books by the current author in the main book list. Fixes #1821992 [[enhancement] right click option to go to books when managing authors](https://bugs.launchpad.net/calibre/+bug/1821992)
Merge branch 'master' of https://github.com/cbhaley/calibre
2019-03-28 14:14:06 +05:30
Charles Haley 08692f4acb Enhancement #1821992: Add "show books by author in book list" to manage authors dialog. 2019-03-28 08:37:13 +00:00
Kovid Goyal a811bfa502 py3: Ensure cmp() is available where it is used 2019-03-28 12:25:26 +05:30
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