Skip to content

Commit

Permalink
Minor Calendar.parse() improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreMiras authored and alexpdp7 committed Dec 25, 2019
1 parent 11c3f10 commit 6e70a0f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions festivus.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ def __init__(self, location):

def parse(self, f):
source = f.readline()
while True:
line = f.readline()
if not line:
break
for line in f:
self.add(Day(line.strip(), source.strip()))

def add(self, day):
Expand Down

0 comments on commit 6e70a0f

Please sign in to comment.