From bc0a52b8486b770ea7b16356f9bb514f63653700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Fri, 21 Nov 2014 22:46:43 +0100 Subject: [PATCH] PEP 8 --- kcc/KCC_gui.py | 22 +++++++++++----------- kcc/comic2ebook.py | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/kcc/KCC_gui.py b/kcc/KCC_gui.py index 1cb465f..1f581df 100644 --- a/kcc/KCC_gui.py +++ b/kcc/KCC_gui.py @@ -111,15 +111,15 @@ class WebServerHandler(BaseHTTPRequestHandler): self.send_header('Content-type', 'text/html') self.end_headers() self.wfile.write(bytes('\n' - '\n' - '\n' - '\n' - 'Kindle Comic Converter\n' - '\n' - '\n' - '
\n' - '

- -

\n', 'UTF-8')) + '\n' + '\n' + '\n' + 'Kindle Comic Converter\n' + '\n' + '\n' + '
\n' + '

- -

\n', 'UTF-8')) if len(GUI.completedWork) > 0 and not GUI.conversionAlive: for key in sorted(GUI.completedWork.keys()): self.wfile.write(bytes('

' + key.split('.')[0] + '

\n', 'UTF-8')) @@ -127,8 +127,8 @@ class WebServerHandler(BaseHTTPRequestHandler): self.wfile.write(bytes('

No downloads are available.
' 'Convert some files and refresh this page.

\n', 'UTF-8')) self.wfile.write(bytes('
\n' - '\n' - '\n', 'UTF-8')) + '\n' + '\n', 'UTF-8')) elif sendReply: outputFile = GUI.completedWork[unquote(self.path[1:])] fp = open(outputFile, 'rb') diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index 16de45d..f7741bc 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -420,7 +420,7 @@ def buildEPUB(path, chapterNames, tomeNumber): chapter = False for afile in filenames: filename = getImageFileName(afile) - if not '-kcc-hq' in filename[0]: + if '-kcc-hq' not in filename[0]: filelist.append(buildHTML(dirpath, afile, os.path.join(dirpath, afile))) if not chapter: chapterlist.append((dirpath.replace('Images', 'Text'), filelist[-1][1]))