Browse files

Merge pull request #25 from k0s/24

  • Loading branch information...
2 parents 5049895 + b5a2cc2 commit 1d3a52a42e45947284725166a029b76b48fd8194 @malini malini committed Aug 13, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 dzclient/client.py
View
3 dzclient/client.py
@@ -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 1d3a52a

Please sign in to comment.