mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Dont scan Zeroconf.py in the porting utils
This is being replaced by upstream zeroconf in py3
This commit is contained in:
parent
d87529e9d2
commit
06dc7dd15b
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user