Try to combine some if statements

This commit is contained in:
deix
2017-08-28 19:13:04 +02:00
parent 101332316a
commit 383d09ff29
3 changed files with 7 additions and 11 deletions

View File

@@ -120,9 +120,7 @@ class Airodump(object):
# Remove .cap and .xor files from pwd
for fil in os.listdir('.'):
if fil.startswith('replay_') and fil.endswith('.cap'):
os.remove(fil)
if fil.endswith('.xor'):
if fil.startswith('replay_') and fil.endswith('.cap') or fil.endswith('.xor'):
os.remove(fil)
def get_targets(self, apply_filter=True):