Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

Commit

Permalink
Delete unnecessary timezone type checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
douglatornell committed Nov 12, 2012
1 parent a3870a7 commit 8c63e46
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions blogofile_blog/site_src/_controllers/blog/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,6 @@ def __excerpt(self, num_words=50):
return " ".join(post_words[:num_words])

def __post_process(self):
#Make sure dates have timezone info:
if not self.date.tzinfo:
pytz.timezone(self.__timezone).localize(self.date)
if not self.updated.tzinfo:
pytz.timezone(self.__timezone).localize(self.updated)
if not self.title:
self.title = "Untitled - {0}".format(self.date)
if not self.slug:
Expand Down

0 comments on commit 8c63e46

Please sign in to comment.