mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
f9694a218c
commit
ba2bd3f01b
@ -7,7 +7,6 @@ G{classtree ProtocolError}
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ProtocolError(Exception):
|
class ProtocolError(Exception):
|
||||||
""" The base class for all exceptions in this package """
|
""" The base class for all exceptions in this package """
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@ from bs4 import ( # noqa
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def parse_html(markup):
|
def parse_html(markup):
|
||||||
from calibre.ebooks.chardet import strip_encoding_declarations, xml_to_unicode, substitute_entites
|
from calibre.ebooks.chardet import strip_encoding_declarations, xml_to_unicode, substitute_entites
|
||||||
from calibre.utils.cleantext import clean_xml_chars
|
from calibre.utils.cleantext import clean_xml_chars
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
__license__ = 'GPL v3'
|
__license__ = 'GPL v3'
|
||||||
__copyright__ = '2011, Anthon van der Neut <A.van.der.Neut@ruamel.eu>'
|
__copyright__ = '2011, Anthon van der Neut <A.van.der.Neut@ruamel.eu>'
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@ __copyright__ = '2009, John Schember <john@nachtimwald.com>'
|
|||||||
__docformat__ = 'restructuredtext en'
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def r(*a):
|
def r(*a):
|
||||||
return list(range(*a))
|
return list(range(*a))
|
||||||
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
import io
|
|
||||||
|
|
||||||
|
|
||||||
def open_for_read(path):
|
def open_for_read(path):
|
||||||
return open(path, encoding='utf-8', errors='replace')
|
return open(path, encoding='utf-8', errors='replace')
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class CheckEncoding:
|
class CheckEncoding:
|
||||||
|
|
||||||
def __init__(self, bug_handler):
|
def __init__(self, bug_handler):
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
from zlib import decompress
|
from zlib import decompress
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class jisyo :
|
class jisyo :
|
||||||
kanwadict = None
|
kanwadict = None
|
||||||
itaijidict = None
|
itaijidict = None
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# vim:fileencoding=utf-8
|
# vim:fileencoding=utf-8
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
__license__ = 'GPL v3'
|
__license__ = 'GPL v3'
|
||||||
__copyright__ = '2014, Kovid Goyal <kovid at kovidgoyal.net>'
|
__copyright__ = '2014, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user