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('