Commit Graph

37445 Commits

Author SHA1 Message Date
Kovid Goyal 4c9fb6becd ... 2019-03-15 15:52:12 +05:30
Kovid Goyal e9b26ebb00 Dont rely on constants from the pickle module 2019-03-15 15:48:32 +05:30
Kovid Goyal fae355fe65 Replace use of pickle for icon theme cache on Linux 2019-03-15 15:38:12 +05:30
Kovid Goyal 69210a7783 Dont use pickle to calculate etags for tag browser data dumps 2019-03-15 15:25:58 +05:30
Kovid Goyal c98cc3383d Dont use pickle for calculating book hashes for the server
This has the unfortunate side-effect of making existing caches stale,
but cant be helped, given the instability of pickle as a serialization
format.
2019-03-15 15:06:26 +05:30
Kovid Goyal 74497a4ff8 Dont use pickle to pass temp dir to worker processes 2019-03-15 14:59:33 +05:30
Kovid Goyal 7e670497eb Move pickle implementation into the serialize module
And make it work on both py2 and py3. Note that unpickling of data
between python major versions is not likely to work well.
2019-03-15 14:49:56 +05:30
Kovid Goyal 6ad782cb29 Replace use of pickle for sending data to viewer print worker 2019-03-15 14:39:06 +05:30
Kovid Goyal 74e316e20b Replace use of pickle in update URL 2019-03-15 14:04:54 +05:30
Kovid Goyal 1e6d9e9583 Replace use of pickle for the editor completion worker 2019-03-15 11:59:46 +05:30
Kovid Goyal fc61fc88bc Replace use of pickle for D'nD in the tag browser 2019-03-15 11:50:31 +05:30
Kovid Goyal 046f43446e Replace use of pickle when repairing db on windows 2019-03-15 11:43:17 +05:30
Kovid Goyal 52c371e8b5 Replace another use of pickle 2019-03-14 21:05:13 +05:30
Kovid Goyal 54ef601e91 Get rid of a pointless use of pickle 2019-03-14 20:46:20 +05:30
Kovid Goyal 7fcf90ba97 Dont use pickle for the db thumbnail cache index 2019-03-14 20:17:58 +05:30
Kovid Goyal 6b9d4a16d5 Fix a regression that caused a harmless error popup when displaying tooltips in the select format dialog 2019-03-14 11:57:27 +05:30
Kovid Goyal 5ab3c7b727 Merge branch 'syntax' of https://github.com/eli-schwartz/calibre 2019-03-14 11:28:21 +05:30
Eli Schwartz 373f300ed7 Fix syntax error introduced while getting rid of basestring 2019-03-14 01:53:52 -04:00
Kovid Goyal 9cf2e2f671 Finish getting rid of xrange 2019-03-13 18:44:05 +05:30
Kovid Goyal b4e467ea18 Get rid of more xrange 2019-03-13 18:30:31 +05:30
Kovid Goyal 2d4127f7b9 Get rid of more xrange 2019-03-13 18:19:24 +05:30
Kovid Goyal ea33a5d6ad Get rid of more xrange 2019-03-13 15:51:21 +05:30
Kovid Goyal 6b5c3bd7c9 Get rid of more xrange 2019-03-13 15:44:45 +05:30
Kovid Goyal d1e30dfcac Get rid of some xrange 2019-03-13 15:34:10 +05:30
Kovid Goyal 55151a3cdd Get rid of basestring 2019-03-13 14:57:26 +05:30
Kovid Goyal 073e97121e Micro-optimization 2019-03-13 13:46:40 +05:30
Kovid Goyal 7fd5940ef8 Merge branch 'py3' of https://github.com/eli-schwartz/calibre 2019-03-13 13:31:24 +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
Eli Schwartz 1a687a3d57 Port lzma_binding plugin to build on python2/python3 2019-03-13 01:08:25 -04:00
Eli Schwartz 9139fccbf4 Port cpalmdoc plugin to build on python2/python3 2019-03-13 01:08:25 -04:00
Eli Schwartz 1d5c89f69b Port libusb plugin to build on python2/python3 2019-03-13 01:08:25 -04:00
Eli Schwartz 190b8c73d8 Port usbobserver plugin to build on python2/python3 2019-03-13 01:08:25 -04:00
Eli Schwartz aa56c26f71 Port winfonts plugin to build on python2/python3 2019-03-13 00:42:43 -04:00
Eli Schwartz 3acac495d0 Port wpd plugin to build on python2/python3 2019-03-13 00:42:00 -04:00
Eli Schwartz ccfe12e4f3 Port winutil plugin to build on python2/python3 2019-03-13 00:36:42 -04:00
Kovid Goyal 6ad22b392b pep8 and misc fixes 2019-03-13 09:21:07 +05:30
Kovid Goyal 5b76089839 Various py3 related fixes exposed by the unicode patch 2019-03-13 06:41:39 +05:30
Eli Schwartz 56af613e10 py3: add polyglot imports for BeautifulSoup3
upstream bs4 has changed self.unicode to self.unicode_markup, but
calibre does not use UnicodeDammit. Leave this in its historic, horribly
confusing state, as it should not cause harm to have a class instance
attribute with the same name as a python2 object type.
2019-03-13 06:41:38 +05:30
Eli Schwartz cbc42bec23 python3: add unicode/unichr wrappers to polyglot 2019-03-13 06:41:38 +05:30
Kovid Goyal 77728a15ef Update derStandard 2019-03-11 08:29:13 +05:30
Kovid Goyal 3e73c9243d Edit book: Fix pasting images into a book with no Images folder not working correctly. Fixes #1817405 [[Enhancement] Inserting image with same name](https://bugs.launchpad.net/calibre/+bug/1817405) 2019-03-10 18:23:19 +05:30
Kovid Goyal a59d6a02fa Fix #1819321 [news download for LA Times fails](https://bugs.launchpad.net/calibre/+bug/1819321) 2019-03-10 17:57:50 +05:30
Kovid Goyal 28145e76b0 A couple of fixes for the last py3 compat PR 2019-03-10 17:30:38 +05:30
Kovid Goyal c897bc1a5d Merge branch 'py3' of https://github.com/eli-schwartz/calibre 2019-03-10 17:30:08 +05:30
Eli Schwartz c53322db0d Port podofo plugin to build on python2/python3 2019-03-10 00:10:19 -05:00
Eli Schwartz 9ad1ebf487 libmtp: make update script run on python3
Also make it not clone tons of useless history.
2019-03-10 00:10:19 -05:00
Eli Schwartz 6aa1592052 Port libmtp plugin to build on python2/python3 2019-03-10 00:10:19 -05:00
Eli Schwartz c0754900fe C extensions: format strings with the right type of values on python2/python3 2019-03-10 00:10:14 -05:00
Eli Schwartz a14454a857 py3: fix PyInt types for python2/python3 2019-03-10 00:03:53 -05:00
Kovid Goyal 76447ba379 The New Criterion by Darko Miletic
Fixes #1819276 [New recipe - The New Criterion magazine](https://bugs.launchpad.net/calibre/+bug/1819276)
2019-03-09 22:26:32 +05:30