From d66fdc2df71b7aec056ac3707c1a6406cbefafa3 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 21 Mar 2019 01:20:29 -0400 Subject: [PATCH] autopep8 --- setup/resources.py | 8 ++++---- src/calibre/ebooks/lit/writer.py | 3 +-- src/calibre/ebooks/mobi/debug/mobi8.py | 16 ++++++++-------- src/calibre/gui2/tweak_book/widgets.py | 6 +++--- src/calibre/utils/serve_coffee.py | 10 +++++----- src/calibre/utils/terminal.py | 4 ++-- 6 files changed, 23 insertions(+), 24 deletions(-) diff --git a/setup/resources.py b/setup/resources.py index 6fc5cf92e5..a859735148 100644 --- a/setup/resources.py +++ b/setup/resources.py @@ -90,12 +90,12 @@ class Coffee(Command): # {{{ updated = {} for arcname in todo: name = arcname.rpartition('.')[0] - print ('\t%sCompiling %s'%(time.strftime('[%H:%M:%S] ') if + print('\t%sCompiling %s'%(time.strftime('[%H:%M:%S] ') if timestamp else '', name)) src, sig = src_files[arcname] js, errors = compile_coffeescript(open(src, 'rb').read(), filename=src) if errors: - print ('\n\tCompilation of %s failed'%name) + print('\n\tCompilation of %s failed'%name) for line in errors: print(line, file=sys.stderr) if ignore_errors: @@ -105,8 +105,8 @@ class Coffee(Command): # {{{ else: if opts.show_js: self.show_js(js) - print ('#'*80) - print ('#'*80) + print('#'*80) + print('#'*80) zi = zipfile.ZipInfo() zi.filename = arcname zi.date_time = time.localtime()[:6] diff --git a/src/calibre/ebooks/lit/writer.py b/src/calibre/ebooks/lit/writer.py index eeef5e675e..fd292f4a03 100644 --- a/src/calibre/ebooks/lit/writer.py +++ b/src/calibre/ebooks/lit/writer.py @@ -510,8 +510,7 @@ class LitWriter(object): data.write(pack('