From cd00af6a98e91d623a44c81af824082f8d14d95b Mon Sep 17 00:00:00 2001 From: Rafael Ortiz Date: Mon, 20 Jun 2011 20:02:13 +0000 Subject: pep8 fixes --- (limited to 'document.py') diff --git a/document.py b/document.py index 99f1a04..a7d9e91 100644 --- a/document.py +++ b/document.py @@ -37,17 +37,19 @@ class Document: for i in range(theme.TAPE_COUNT): tape.append(EmptyFrame()) + def clean(index): from char import Frame Document.tape[index] = EmptyFrame() + def save(filepath): tar = Tarball(filepath, 'w') - cfg = { 'ground': {}, - 'sound' : {}, + cfg = {'ground': {}, + 'sound': {}, 'frames': {}, - 'tape' : [] } + 'tape': []} def _save(node, arcname, value): if value.custom(): @@ -79,6 +81,7 @@ def save(filepath): tar.write('MANIFEST', json.dumps(cfg)) tar.close() + def load(filepath): try: tar = Tarball(filepath) -- cgit v0.9.1