Skip to content

Commit

Permalink
Make persistence python 2 compatible
Browse files Browse the repository at this point in the history
Fixes #69
  • Loading branch information
honzakral committed Feb 13, 2015
1 parent 977a514 commit ddaae60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Let's have a simple Python class representing an article in a blogging system:
def save(self, ** kwargs):
self.lines = len(self.body.split())
return super().save(** kwargs)
return super(Article, self).save(** kwargs)
def is_published(self):
return datetime.now() < self.published_from
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Let's have a simple Python class representing an article in a blogging system:
def save(self, ** kwargs):
self.lines = len(self.body.split())
return super().save(** kwargs)
return super(Article, self).save(** kwargs)
def is_published(self):
return datetime.now() < self.published_from
Expand Down

0 comments on commit ddaae60

Please sign in to comment.