Skip to content

Commit 67e8147

Browse files
committed
Slight logic modification.
1 parent 641ee41 commit 67e8147

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎python3/merge-mutt-contacts.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@ def merge_files(contacts_filenames):
1414
group = None
1515
for line in f.readlines():
1616
line = line.strip()
17-
if len(line) == 0:
18-
continue
1917
r = re.search("^# (.*)$",line)
2018
if r:
2119
group = r.group(1)
22-
else:
20+
elif len(line) != 0:
2321
contents[group].append(line)
2422
for group in sorted(contents):
2523
print("# {}".format(group))

0 commit comments

Comments
 (0)