b2f161670a
Cleaned up __init__.py for main module
2021-01-05 19:48:45 +01:00
018676c026
Moved prepare_string_for_xml to utils.entities.
2021-01-03 19:47:49 +01:00
8be21d878d
Moved xml_replace_entities to utils.entities.
2021-01-03 19:37:03 +01:00
dc4352fd4c
Moved replace_entities to utils.entities.
2021-01-03 19:35:07 +01:00
877ea68d42
Moved xml_entity_to_unicode partial to utils.entities module.
2021-01-03 19:00:17 +01:00
839cc3c79a
Moved entity_to_unicode function to utils.entities module.
2021-01-03 18:52:13 +01:00
3152c52839
Move force_uniceode to utils package
2020-11-11 19:31:15 +01:00
22fed6f4d3
Removed facade on os.walk.
2020-10-13 21:27:32 +02:00
b44926a6eb
Move fit_image to img utils module.
2020-10-13 21:00:01 +02:00
250d0eeea7
Move specific sanitize_file_name out of init module.
...
sanitize_file_name function has been moved to utility module filenames,
where it logically belongs.
2020-10-13 19:29:27 +02:00
847e133878
Initialize mime in cli module
2020-09-30 20:46:01 +02:00
e213b7a64b
Moving human_readable formatting function out of __init__.
...
There is a module, where this function is used - formatter_functions. It
is at the same time the only place where it is used. No need to clutter
__init__.py with it.
2020-09-30 20:24:22 +02:00
a5880b2445
Moving dependent function my_unichar into entity_to_unicode function
2020-09-30 20:23:20 +02:00
97ddcd7be1
Don't cross import symbols from __init__
2020-09-30 19:15:56 +02:00
db55fd4df7
Removed unused setup_cli_handlers function
2020-09-30 18:59:02 +02:00
0abbb43afe
Removed unused code mainly from old constants file.
2020-07-18 19:37:35 +02:00
45b6bb5b2c
Cleanup, cleanup
2020-07-17 18:59:45 +02:00
5ac8451668
Removed unsed code
2020-07-17 17:57:41 +02:00
4216fef20e
Removed prints and extract function from init module
2020-07-13 21:38:06 +02:00
025878dfe5
Cleanup init module
2020-07-13 20:44:09 +02:00
16c568eab9
Removed useless function assign to variable
2020-07-13 20:33:41 +02:00
a618f929a8
Removed unused url_slash_cleaner
2020-07-13 20:31:40 +02:00
3e5e68d886
Removed unused confirm_config_name function
2020-07-13 20:21:56 +02:00
6a7dc474ac
Removed unicode path function
2020-07-13 20:21:26 +02:00
c25d63fd05
Removed safe_chr function
2020-07-05 17:42:01 +02:00
1a09e3db84
Removed Windows bits.
2020-06-17 19:28:07 +02:00
f31fb5e971
Get rid of name2codepoint usage in favor of stdlib one.
2020-06-17 17:42:49 +02:00
1c04e7a4c7
More cleanups. Removing version function.
2020-06-15 22:22:55 +02:00
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
fdd531f6e0
Removed as_unicode function
2020-06-14 19:02:23 +02:00
add7a8ca56
Removed unused function to_unicode
2020-06-14 16:25:46 +02:00
372899739d
Removed patheq function
2020-06-14 16:09:08 +02:00
dd60a1cd26
Removed guess_all_extensions
2020-06-14 15:54:38 +02:00
e35bd46422
Removed get_types_map
2020-06-14 15:52:24 +02:00
1d4f75ceba
Removed unused fsync function
2020-06-14 15:47:47 +02:00
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
b23a59f223
Removed unused function for counting CPU cores
2020-06-14 12:43:15 +02:00
ebb2e810eb
Removed 'browser' related functions
2020-06-14 12:28:23 +02:00
be671ef2d8
Removed isbytestring function
2020-06-14 12:10:40 +02:00
2c78d6e3a6
Renamed constants, to make room for real constants module
2020-05-26 19:52:18 +02:00
17c52a14a4
Some misc cleanups
2020-05-24 12:10:13 +02:00
8f1eb9c88c
Removed another wrapper on stdlib
2020-04-23 20:25:52 +02:00
16d169d0d6
Removed another unicode/string nonsense
2020-04-23 20:07:19 +02:00
de4f8a444b
Removed check for python version
2020-04-21 21:06:48 +02:00
eac0b98d6f
Removed polyglot codepoint_to_chr
2020-04-20 19:29:05 +02:00
128705f258
Removed polyglots unicode_type usage
2020-04-20 19:25:28 +02:00
ef7e2b10be
Removing is_py3 method and duplicated by urllib.
2020-04-19 21:22:24 +02:00
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
571da747b3
Fix license formatting
2020-04-19 17:50:19 +02:00
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