unicode_check: do not try to check pyuic-generated files

This commit is contained in:
Eli Schwartz 2019-07-22 11:20:50 -04:00
parent 2212dfc649
commit cba11fb969
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6

View File

@ -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):