mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
PEP 8 E111 & E114 cleanup. (#20838)
This commit is contained in:
@@ -231,16 +231,16 @@ def contentfilter(fsname, pattern):
|
||||
return True
|
||||
|
||||
try:
|
||||
f = open(fsname)
|
||||
prog = re.compile(pattern)
|
||||
for line in f:
|
||||
if prog.match (line):
|
||||
f.close()
|
||||
return True
|
||||
f = open(fsname)
|
||||
prog = re.compile(pattern)
|
||||
for line in f:
|
||||
if prog.match (line):
|
||||
f.close()
|
||||
return True
|
||||
|
||||
f.close()
|
||||
f.close()
|
||||
except:
|
||||
pass
|
||||
pass
|
||||
|
||||
return False
|
||||
|
||||
@@ -337,7 +337,7 @@ def main():
|
||||
fsname=os.path.normpath(os.path.join(root, fsobj))
|
||||
|
||||
if os.path.basename(fsname).startswith('.') and not params['hidden']:
|
||||
continue
|
||||
continue
|
||||
|
||||
try:
|
||||
st = os.lstat(fsname)
|
||||
|
||||
Reference in New Issue
Block a user