Skip to content

Commit

Permalink
Removed unnecessary 'json' attribute of models
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Metzler committed May 30, 2013
1 parent e0d17b8 commit fda5bfb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion tweetpony/metadata.py
Expand Up @@ -2,7 +2,7 @@
# See the LICENSE file for the full license.

name = "TweetPony"
version = "1.2.3"
version = "1.2.4"
description = "A Twitter library for Python"
license = "AGPLv3"
author = "Julian Metzler"
Expand Down
3 changes: 0 additions & 3 deletions tweetpony/models.py
Expand Up @@ -55,7 +55,6 @@ def __getattr__(self, name):
@classmethod
def from_json(cls, data):
self = cls(data)
self['json'] = json.dumps(data)
return self

def connect_api(self, api):
Expand Down Expand Up @@ -128,7 +127,6 @@ class Status(Model):
def from_json(cls, data):
self = cls(Model.from_json(data))
tmp = cls()
tmp['json'] = json.dumps(data)
for key, value in self.iteritems():
if key == 'created_at':
value = strptime(value)
Expand Down Expand Up @@ -272,7 +270,6 @@ class SimpleRelationship(Model):
def from_json(cls, data):
self = cls(Model.from_json(data))
tmp = cls()
tmp['json'] = json.dumps(data)
for key, value in self.iteritems():
if key == 'connections':
tmp['followed_by'] = 'followed_by' in value
Expand Down

0 comments on commit fda5bfb

Please sign in to comment.