diff --git a/setup/port.py b/setup/port.py
index ecd09e2e9e..401764fcb7 100644
--- a/setup/port.py
+++ b/setup/port.py
@@ -72,7 +72,8 @@ class Base(Command):
def get_files(self):
from calibre import walk
for path in walk(os.path.join(self.SRC, 'calibre')):
- if path.endswith('.py') and not os.path.basename(path) in self.EXCLUDED_BASENAMES:
+ if (path.endswith('.py') and not path.endswith('_ui.py') and not
+ os.path.basename(path) in self.EXCLUDED_BASENAMES):
yield path
def file_hash(self, f):
diff --git a/src/calibre/ebooks/oeb/transforms/flatcss.py b/src/calibre/ebooks/oeb/transforms/flatcss.py
index 4b777dbc04..c02dfe9e34 100644
--- a/src/calibre/ebooks/oeb/transforms/flatcss.py
+++ b/src/calibre/ebooks/oeb/transforms/flatcss.py
@@ -1,7 +1,7 @@
'''
CSS flattening transform.
'''
-from __future__ import with_statement
+from __future__ import absolute_import, division, print_function, unicode_literals
__license__ = 'GPL v3'
__copyright__ = '2008, Marshall T. Vandegrift %s' % start
+ return ' %s' % start
def end_line(self):
- end = u''
+ end = ''
div = []
span = []
@@ -281,10 +282,10 @@ class PML_HTMLizer(object):
else:
end += self.STATES_TAGS[key][1]
- return u'%s