Auto fix excess blank lines

This commit is contained in:
Kovid Goyal
2019-11-20 07:29:37 +05:30
parent 4f47385bd5
commit 01b0fba8ad
162 changed files with 1 additions and 168 deletions
+1 -3
View File
@@ -2,8 +2,6 @@
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
import errno
import glob
import json
@@ -504,7 +502,7 @@ class Freeze(object):
for x in (
'usb-1.0.0', 'mtp.9', 'chm.0', 'sqlite3.0', 'hunspell-1.7.0',
'icudata.64', 'icui18n.64', 'icuio.64', 'icuuc.64', 'hyphen.0',
'xslt.1', 'exslt.0', 'xml2.2', 'z.1', 'unrar',
'xslt.1', 'exslt.0', 'xml2.2', 'z.1', 'unrar', 'lzma.5',
'crypto.1.0.0', 'ssl.1.0.0', 'iconv.2', # 'ltdl.7'
):
print('\nAdding', x)
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
import errno
import glob
import os
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net>
# The class that all Interface Action plugin wrappers must inherit from
from calibre.customize import InterfaceActionBase
@@ -3,7 +3,6 @@
# License: GPL v3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net>
from PyQt5.Qt import QUrl
from PyQt5.QtWebEngineWidgets import QWebEngineView
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
import os
import json
import gzip
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2019, Eli Schwartz <eschwartz@archlinux.org>
import re
import subprocess
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2009, Kovid Goyal <kovid at kovidgoyal.net>
import atexit
import glob
import os
-1
View File
@@ -3,7 +3,6 @@
# License: GPL v3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net>
import errno
import hashlib
import json
-1
View File
@@ -2,7 +2,6 @@
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
__license__ = 'GPL v3'
__copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
import os
import unittest
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
import os
import shlex
import subprocess
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
import io
import os
import subprocess
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
import importlib
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
import os
import sys
from contextlib import contextmanager
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
import json
from calibre import prints
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
import os
from io import BytesIO
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
from calibre import prints
readonly = True
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
import os
from calibre.customize.ui import available_catalog_formats, plugin_for_catalog_format
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
import csv
import sys
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
import os
from calibre import patheq
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
from pprint import pformat
from calibre import prints
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
from calibre import prints
from calibre.db.cli import integers_from_string
from calibre.srv.changes import formats_added
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
import os
from calibre.db.cli import integers_from_string
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
import json
import os
import sys
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
import csv
import sys
from textwrap import TextWrapper
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
from calibre.db.cli import integers_from_string
from calibre.db.delete_service import delete_service
from calibre.srv.changes import books_deleted
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
import sys
from calibre import prints
from calibre.db.legacy import LibraryDatabase
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
from calibre.db.delete_service import delete_service
from calibre.srv.changes import formats_removed
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
from calibre import prints
from calibre.db.restore import Restore
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
readonly = False
version = 0 # change this if you change signature of implementation()
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
from calibre import prints
readonly = True
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
from calibre import prints
from calibre.db import _get_series_values
from calibre.srv.changes import metadata
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
import os
from calibre import prints
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
import sys
from calibre import prints
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
from polyglot.builtins import map
import unicodedata
-1
View File
@@ -3,7 +3,6 @@
# License: GPL v3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net>
from calibre.db.utils import find_identical_books
from calibre.utils.config import tweaks
from calibre.utils.date import now
-1
View File
@@ -2,7 +2,6 @@
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
__license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
-1
View File
@@ -1,7 +1,6 @@
#!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
"""
-1
View File
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL v3'
__docformat__ = 'restructuredtext en'
-1
View File
@@ -2,7 +2,6 @@
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
__license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
@@ -2,7 +2,6 @@
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
__license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
-1
View File
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2009, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
import os, string, re, sys
from collections import namedtuple, defaultdict
from operator import itemgetter
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net>
import bs4
from bs4 import ( # noqa
CData, Comment, Declaration, NavigableString, ProcessingInstruction,
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2011, Anthon van der Neut <anthon@mnt.org>'
__docformat__ = 'restructuredtext en'
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
import regex
REGEX_FLAGS = regex.VERSION1 | regex.WORD | regex.FULLCASE | regex.MULTILINE | regex.UNICODE
-1
View File
@@ -3,7 +3,6 @@ Add page mapping information to an EPUB book.
'''
__license__ = 'GPL v3'
__copyright__ = '2008, Marshall T. Vandegrift <llasram@gmail.com>'
__docformat__ = 'restructuredtext en'
-1
View File
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
-1
View File
@@ -1,6 +1,5 @@
def _optimize(tagList, tagName, conversion):
# copy the tag of interest plus any text
newTagList = []
@@ -3,8 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
from calibre.constants import preferred_encoding
from calibre.ebooks.metadata.book import SERIALIZABLE_FIELDS
from calibre.ebooks.metadata.book.base import Metadata
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>, John Howell <jhowell@acm.org>'
# Based on work of John Howell reversing the KFX format
# https://www.mobileread.com/forums/showpost.php?p=3176029&postcount=89
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
from lxml import etree
from calibre.ebooks.metadata.opf2 import OPF, pretty_print
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
import json
import re
from collections import defaultdict, namedtuple
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net>
from lxml import etree
from calibre.ebooks.metadata.opf3 import (
-1
View File
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
'''
Read meta information from Plucker pdb files.
'''
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
from polyglot.builtins import iteritems
from polyglot.urllib import quote, quote_plus
-1
View File
@@ -1,7 +1,6 @@
'''Read meta information from SNB files'''
__license__ = 'GPL v3'
__copyright__ = '2010, Li Fanxi <lifanxi@freemindworld.com>'
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
import cgi
import mimetypes
import os
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net>
import sys
from calibre.ebooks.metadata.opf_2_to_3 import upgrade_metadata
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
'''
Read content from ereader pdb file with a 116 and 202 byte header created by Makebook.
'''
-1
View File
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
'''
Read the header data from a pdb file.
'''
-1
View File
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL v3'
__copyright__ = '20011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
-1
View File
@@ -3,7 +3,6 @@
# License: GPL v3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net>
import sys
from PyQt5.Qt import QApplication, QUrl, QPageLayout, QPageSize, QMarginsF
-1
View File
@@ -3,7 +3,6 @@
# License: GPL v3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net>
from PyQt5.Qt import QMarginsF, QPageLayout, QPageSize, QSize
from calibre.constants import filesystem_encoding
@@ -3,7 +3,6 @@
# License: GPL v3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net>
import unittest
from .html_writer import merge_w_arrays, merge_cmaps
-1
View File
@@ -1,6 +1,5 @@
def save_to_file(text, filename):
with open(filename, 'wb') as f:
f.write(b'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />')
-1
View File
@@ -3,7 +3,6 @@
# License: GPL v3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net>
import os
import sys
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
from calibre.gui2 import gprefs
from calibre.gui2.actions import InterfaceAction
from polyglot.builtins import iteritems, map, range
-1
View File
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
@@ -2,8 +2,6 @@
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net>
from PyQt5.Qt import QToolButton, QAction
from calibre.gui2.actions import InterfaceAction
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
from collections import OrderedDict
from polyglot.builtins import map, unicode_type
-1
View File
@@ -3,7 +3,6 @@
# License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net>
from collections import OrderedDict
from calibre.ebooks.metadata import authors_to_string, string_to_authors
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
from calibre.srv.changes import (
BooksAdded, BooksDeleted, FormatsAdded, FormatsRemoved, MetadataChanged,
SavedSearchesChanged
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2009, Kovid Goyal <kovid at kovidgoyal.net>
import shutil
from PyQt5.Qt import (
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
from PyQt5.Qt import (
QWidget, QVBoxLayout, QHBoxLayout, QLabel, QComboBox, QLineEdit,
QPushButton, QSize, pyqtSignal, QMenu
@@ -2,7 +2,6 @@
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
__copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net'
__docformat__ = 'restructuredtext en'
__license__ = 'GPL v3'
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2011, Kovid Goyal <kovid at kovidgoyal.net>
from PyQt5.Qt import (QDialog, QLabel, QVBoxLayout, QDialogButtonBox,
QProgressBar, QSize, QTimer, pyqtSignal, Qt)
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2008, Kovid Goyal <kovid at kovidgoyal.net>
from PyQt5.Qt import (
QFormLayout, QIcon, QLabel, QLineEdit, QListWidget, Qt, QVBoxLayout
)
-1
View File
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
from PyQt5.Qt import (
QFontMetrics, QHBoxLayout, QIcon, QMenu, QPainter, QPushButton, QSize,
QSizePolicy, Qt, QWidget, QStyleOption, QStyle)
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net>
from PyQt5.Qt import QSplitter, QTableView
from calibre.gui2.library import DEFAULT_SORT
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2010, Kovid Goyal <kovid at kovidgoyal.net>
import re
import textwrap
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2010, Kovid Goyal <kovid at kovidgoyal.net>
import textwrap
from collections import OrderedDict
from functools import partial
@@ -2,8 +2,6 @@
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
from PyQt5.Qt import (
QDialog, QLabel, QSizePolicy, QStackedLayout, QStackedWidget, Qt, QVBoxLayout,
QWidget
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
import os
from PyQt5.Qt import QFileDialog, QObject
-1
View File
@@ -3,7 +3,6 @@
# License: GPLv3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
from PyQt5.Qt import (
QApplication, QBrush, QColor, QFont, QFontMetrics, QPen, QPixmap, QSplashScreen,
Qt
-1
View File
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
-1
View File
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
-1
View File
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'

Some files were not shown because too many files have changed in this diff Show More