Dont scan Zeroconf.py in the porting utils

This is being replaced by upstream zeroconf in py3
This commit is contained in:
Kovid Goyal 2019-05-28 12:41:48 +05:30
parent d87529e9d2
commit 06dc7dd15b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -57,6 +57,7 @@ def run_2to3(path, show_diffs=False):
class Base(Command):
scan_all_files = False
EXCLUDED_BASENAMES = {'Zeroconf.py'}
@property
def cache_file(self):
@ -71,7 +72,7 @@ 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'):
if path.endswith('.py') and not os.path.basename(path) in self.EXCLUDED_BASENAMES:
yield path
def file_hash(self, f):