Avoid pylint error on Python 3.7.
This commit is contained in:
parent
18867847f4
commit
9e31cf7270
1 changed files with 4 additions and 4 deletions
|
@ -1742,8 +1742,8 @@ def main():
|
||||||
if ModuleValidator.is_blacklisted(path):
|
if ModuleValidator.is_blacklisted(path):
|
||||||
continue
|
continue
|
||||||
with ModuleValidator(path, analyze_arg_spec=args.arg_spec,
|
with ModuleValidator(path, analyze_arg_spec=args.arg_spec,
|
||||||
base_branch=args.base_branch, git_cache=git_cache, reporter=reporter) as mv:
|
base_branch=args.base_branch, git_cache=git_cache, reporter=reporter) as mv1:
|
||||||
mv.validate()
|
mv1.validate()
|
||||||
check_dirs.add(os.path.dirname(path))
|
check_dirs.add(os.path.dirname(path))
|
||||||
|
|
||||||
for root, dirs, files in os.walk(module):
|
for root, dirs, files in os.walk(module):
|
||||||
|
@ -1765,8 +1765,8 @@ def main():
|
||||||
if ModuleValidator.is_blacklisted(path):
|
if ModuleValidator.is_blacklisted(path):
|
||||||
continue
|
continue
|
||||||
with ModuleValidator(path, analyze_arg_spec=args.arg_spec,
|
with ModuleValidator(path, analyze_arg_spec=args.arg_spec,
|
||||||
base_branch=args.base_branch, git_cache=git_cache, reporter=reporter) as mv:
|
base_branch=args.base_branch, git_cache=git_cache, reporter=reporter) as mv2:
|
||||||
mv.validate()
|
mv2.validate()
|
||||||
|
|
||||||
for path in sorted(check_dirs):
|
for path in sorted(check_dirs):
|
||||||
pv = PythonPackageValidator(path, reporter=reporter)
|
pv = PythonPackageValidator(path, reporter=reporter)
|
||||||
|
|
Loading…
Reference in a new issue