Merge remote-tracking branch 'origin/master' into neale

This commit is contained in:
Neale Pickett 2019-11-10 15:49:47 -07:00
commit aeadde8e17
2 changed files with 5 additions and 1 deletions

View File

@ -1 +1 @@
3.3.1
3.3.2

View File

@ -174,6 +174,10 @@ class Puzzle:
def handle_header_key(self, key, val):
if key == 'author':
self.authors.append(val)
elif key == 'authors':
if not isinstance(val, list):
raise ValueError("Authors must be a list, got %s, instead" & (type(val),))
self.authors = list(val)
elif key == 'summary':
self.summary = val
elif key == 'answer':