From cba11fb969268d1e5d27c7e89c7b074cf8dbf596 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 22 Jul 2019 11:20:50 -0400 Subject: [PATCH] unicode_check: do not try to check pyuic-generated files --- setup/port.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):