Skip to content

Commit

Permalink
Start support for a better interface for reading/writing files
Browse files Browse the repository at this point in the history
  • Loading branch information
gulopine committed Oct 6, 2013
1 parent cb91628 commit 7082721
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions steel/base.py
Expand Up @@ -88,6 +88,12 @@ def get_parent(self):
def save(self, file):
file.write(self.get_raw_bytes())

def dump(self, file):
file.write(self.dumps())

def dumps(self):
return self.get_raw_bytes()

def validate(self):
errors = []
for name, field in self._fields.items():
Expand Down

0 comments on commit 7082721

Please sign in to comment.