1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

remove unnecessary enumerate in for loop

This commit is contained in:
Kelly Brazil
2020-02-17 22:29:39 -08:00
parent 6ac03faf93
commit c865298ef3

View File

@ -235,7 +235,7 @@ def parse(data, raw=False, quiet=False):
if linedata:
# Check if -l was used to parse extra data
if re.match('^[-dclpsbDCMnP?]([-r][-w][-xsS]){2}([-r][-w][-xtT])[+]?', linedata[0]):
for i, entry in list(enumerate(linedata)):
for entry in linedata:
output_line = {}
parsed_line = entry.split(maxsplit=8)
@ -262,6 +262,7 @@ def parse(data, raw=False, quiet=False):
if parent:
output_line['parent'] = parent
output_line['flags'] = parsed_line[0]
output_line['links'] = parsed_line[1]
output_line['owner'] = parsed_line[2]