1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-24 07:01:30 +02:00
Commit Graph

25 Commits

Author SHA1 Message Date
gryf 1c04e7a4c7 More cleanups. Removing version function. 2020-06-15 22:22:55 +02:00
gryf 3f8844832d Move strftime to util.date module
In this patch strftime function is moved out of main __init__.py module
to util.date, where it belongs.
2020-06-14 20:47:01 +02:00
gryf fdd531f6e0 Removed as_unicode function 2020-06-14 19:02:23 +02:00
gryf add7a8ca56 Removed unused function to_unicode 2020-06-14 16:25:46 +02:00
gryf 372899739d Removed patheq function 2020-06-14 16:09:08 +02:00
gryf dd60a1cd26 Removed guess_all_extensions 2020-06-14 15:54:38 +02:00
gryf e35bd46422 Removed get_types_map 2020-06-14 15:52:24 +02:00
gryf 1d4f75ceba Removed unused fsync function 2020-06-14 15:47:47 +02:00
gryf 1465e4267f Sorted out mime initialization.
Every mime related function in main __init__.py has a flag check for the
check if initialization has already done. This is nonsense, since it
should be done implicitly early on the converter is starting.

This commit straight the things out, and initialization is done in cli
module.

Also, function guess_type was removed, since it's just a proxy for
mimetypes.guess_type function.
2020-06-14 15:41:18 +02:00
gryf b23a59f223 Removed unused function for counting CPU cores 2020-06-14 12:43:15 +02:00
gryf ebb2e810eb Removed 'browser' related functions 2020-06-14 12:28:23 +02:00
gryf be671ef2d8 Removed isbytestring function 2020-06-14 12:10:40 +02:00
gryf 2c78d6e3a6 Renamed constants, to make room for real constants module 2020-05-26 19:52:18 +02:00
gryf 17c52a14a4 Some misc cleanups 2020-05-24 12:10:13 +02:00
gryf 8f1eb9c88c Removed another wrapper on stdlib 2020-04-23 20:25:52 +02:00
gryf 16d169d0d6 Removed another unicode/string nonsense 2020-04-23 20:07:19 +02:00
gryf de4f8a444b Removed check for python version 2020-04-21 21:06:48 +02:00
gryf eac0b98d6f Removed polyglot codepoint_to_chr 2020-04-20 19:29:05 +02:00
gryf 128705f258 Removed polyglots unicode_type usage 2020-04-20 19:25:28 +02:00
gryf ef7e2b10be Removing is_py3 method and duplicated by urllib. 2020-04-19 21:22:24 +02:00
gryf b66cbd2c1e Removed overwritten builtins from mosto of the files.
Just started the process of cleaning up the code base.
2020-04-19 19:06:09 +02:00
gryf 571da747b3 Fix license formatting 2020-04-19 17:50:19 +02:00
gryf bd9cb86c1c Replace Calibre path resolve system for some of the modules.
In Calibre there is a module, which registers two functions in global
scope, one for filepath and one for images path. It relies on additional
three variables, registered during application startup. I found it
overcomplicated, and couple of the resource paths has been calculated
using pkg_resource module.
2020-04-19 15:16:48 +02:00
gryf 0f9792df36 Convert calibre modules to ebook_converter.
Here is the first batch of modules, which are needed for converting
several formats to LRF. Some of the logic has been change, more cleanups
will follow.
2020-04-19 15:16:48 +02:00
gryf d97ea9b0bc Initial import 2020-04-11 19:27:06 +02:00