Skip to content

Commit

Permalink
add dump_file method
Browse files Browse the repository at this point in the history
  • Loading branch information
eshellman committed Feb 11, 2016
1 parent 42baf54 commit 3aa1ce1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gitenberg/metadata/pandata.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,9 @@ def get_edition_list(self):
for key in edition.keys():
new_self.metadata[key] = edition[key]
new_self.set_edition_id()
yield new_self
yield new_self

def dump_file(self, file_name):
with open(file_name,'w+') as f:
f.write(yaml.safe_dump(self.metadata,default_flow_style=False,allow_unicode=True))

0 comments on commit 3aa1ce1

Please sign in to comment.