Permalink
Browse files

#24

  • Loading branch information...
1 parent 5049895 commit b5a2cc23e5cae7fb0f8b782b51fc7e35888b72d7 Jeff Hammel committed Aug 13, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 dzclient/client.py
View
@@ -152,7 +152,8 @@ def create(cls, protocol, host, project, oauth_key,
"""create a DatazillaRequest instance from a results collection"""
# get attributes from the collection
- attributes = inspect.getargspec(DatazillaResultsCollection.__init__).args[1:]
+ attributes, _, _, _ = inspect.getargspec(DatazillaResultsCollection.__init__)
+ attributes = attributes[1:] # remove `self`
kw = dict([(i, getattr(collection, i))
for i in attributes])

0 comments on commit b5a2cc2

Please sign in to comment.