You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
19 lines
563 B
Python
19 lines
563 B
Python
# 2.5 Bug is from nose/plugins/cover.py
|
|
def wantFile(self, file, package=None):
|
|
if self.coverInclusive:
|
|
if file.endswith(".py"):
|
|
if package and self.coverPackages:
|
|
for want in self.coverPackages:
|
|
if package.startswith(want):
|
|
return True
|
|
else:
|
|
return True
|
|
return None
|
|
|
|
|
|
# 2.5 bug is from nose/plugins/doctests.py
|
|
def wantFile2(self, file):
|
|
if self and (self.conf or [exc.search(file) for exc in self.conf]):
|
|
return True
|
|
return None
|