37599 Commits

Author SHA1 Message Date
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
Kovid Goyal
0fcad5f21f
Fix various uses of iteritems missed by dict_fixes 2019-03-25 15:29:08 +05:30
Kovid Goyal
b0d6aec8ed
Fix breakage caused by dict_six auto-fixes 2019-03-25 15:08:56 +05:30
Kovid Goyal
5d46f5fbeb
Get rid of iterkeys
dict.__iter__() is the same as iterkeys on both py2 and py3
2019-03-25 14:31:32 +05:30
Kovid Goyal
7fd70a28e8
Remove unused code 2019-03-25 14:28:09 +05:30
Kovid Goyal
ba70f43118
Fix regressions introduced by autopep8 2019-03-25 13:45:24 +05:30
Kovid Goyal
33cea777ac
Merge branch 'py3' of https://github.com/eli-schwartz/calibre 2019-03-25 13:32:21 +05:30
Kovid Goyal
d115058106
Use the library comments_to_html() function to format comments for e-book catalogs
The original massage_comments() function was largely a duplicate and
also did not work with bs4
2019-03-25 13:25:17 +05:30
Kovid Goyal
e178f179e1
... 2019-03-25 11:36:02 +05:30
Kovid Goyal
ba59ac679d
Fix incorrect soup usage in various recipes
Also make SoupStrainer available in calibre.ebooks.BeautifulSoup
2019-03-25 10:17:27 +05:30
Kovid Goyal
de9d97d688
Port use of BS for comments_html() 2019-03-25 09:52:45 +05:30
Kovid Goyal
a137e676a6
Dont use str(soup) 2019-03-24 15:15:21 +05:30
Kovid Goyal
9395c717ed
Fix usages of soup.prettify() 2019-03-24 14:35:58 +05:30
Kovid Goyal
5e097e3ac7
Port use of BS in Kindle and Kobo drivers 2019-03-24 14:23:24 +05:30
Kovid Goyal
2fc337d779
Dont use str(soup) 2019-03-24 13:36:45 +05:30
Kovid Goyal
19d4a453e8
... 2019-03-24 13:23:43 +05:30
Kovid Goyal
296eda53ea
Do not use BeautifulSoup to read HTML tocs 2019-03-24 13:15:50 +05:30
Kovid Goyal
a3c0ce3b24
Do not use BeautifulSoup to postprocess the jacket
Avoids an extra parse
2019-03-24 12:41:40 +05:30
Kovid Goyal
8813a31a38
Handle direct querying of class attribute across BS versions 2019-03-24 12:18:43 +05:30
Kovid Goyal
3045dc3c71
Port use of BeautifulSoup in LRF output 2019-03-24 12:18:42 +05:30
Kovid Goyal
c8f94a552b
Get rid of soupparser as bs4 has no parser of its own 2019-03-24 12:18:42 +05:30
Kovid Goyal
256c7563b6
Port use of renderContents and BeautifulStoneSoup 2019-03-24 12:18:42 +05:30
Kovid Goyal
c89b656df4
Port usage of BeautifulSoup Tag constructor 2019-03-24 12:18:42 +05:30
Kovid Goyal
692230147c
Start work on porting to beautifulsoup4 2019-03-24 12:18:42 +05:30
Kovid Goyal
78b7112012
Fix using --insert-metadata with ebook-convert not inserting the title and author metadata from the source document 2019-03-24 12:17:21 +05:30
Eli Schwartz
4f545af415
autopep8 2019-03-24 01:18:27 -04:00
Eli Schwartz
a623717d96
python3: apply various fixes from python-modernize "dict_six"
Imports were then fixed and consolidated to derive from the internal
polyglot.builtins
2019-03-24 01:18:27 -04:00
Eli Schwartz
13d236f556
python3: make recent_uas build 2019-03-24 00:54:58 -04:00
Eli Schwartz
a7bbf0f51e
flake8: uniformly ignore unused polyglot imports
No need to have files where every single line contains the trailing
comment "noqa"
2019-03-24 00:54:58 -04:00
Eli Schwartz
f61dcf6b1a
python3: more BytesIO 2019-03-24 00:54:58 -04:00
Eli Schwartz
69711828bd
python3: make lopen a direct alias for the builtin open
Thanks to PEP 0446, its reason to exist no longer applies and it is the
default behavior. However, trying to use it on python3 resulted in
errors since "e" is no longer a valid open() mode.
2019-03-24 00:54:58 -04:00
Eli Schwartz
09e97e5af1
setup: don't report full pathname when creating msgpack'ed resources
The full pathname in the log info was introduced as a side effect of
moving off of pickle.
2019-03-24 00:23:15 -04:00
Eli Schwartz
391ca722e0
python3: PEP 3114 compliance for next() and iterators 2019-03-24 00:23:15 -04:00
Eli Schwartz
9ecadb9c13
python3: use exec() instead of execfile() 2019-03-24 00:23:15 -04:00
Kovid Goyal
c68a5c8ab1
Port Tag creation in recipes to work with any version of BeautifulSoup 2019-03-23 08:06:25 +05:30
Kovid Goyal
930624d2be
pep8 2019-03-22 23:48:01 +05:30
Kovid Goyal
5755625d1e
Get rid of has_key from all recipes 2019-03-22 23:47:49 +05:30