Skip to content

Commit

Permalink
py3 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed May 14, 2015
1 parent 7b6a984 commit 25e8ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/post.py
Expand Up @@ -234,7 +234,7 @@ def __repr__(self):
# Calculate a hash that represents most data about the post
m = hashlib.md5()
# source_path modification date (to avoid reading it)
m.update(str(os.stat(self.source_path).st_mtime))
m.update(repr(os.stat(self.source_path).st_mtime))
m.update(json.dumps(self.meta, cls=utils.CustomEncoder, sort_keys=True))
return '<Post: {0} {1}>'.format(self.source_path, m.hexdigest())

Expand Down

0 comments on commit 25e8ef2

Please sign in to comment.