projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9b3811
)
Fix cursor invocation, passing args to underlying method
author
Yuri Prezument
<y@yprez.com>
Mon, 1 Dec 2014 11:06:24 +0000
(13:06 +0200)
committer
Yuri Prezument
<y@yprez.com>
Mon, 1 Dec 2014 14:15:03 +0000
(16:15 +0200)
tweepy/cursor.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/cursor.py
b/tweepy/cursor.py
index 902fc22970b3b52a0feddee7ae80e371002bfeba..1d63f4979deb67137bc6e1dc3e2b8ef667e468fa 100644
(file)
--- a/
tweepy/cursor.py
+++ b/
tweepy/cursor.py
@@
-115,12
+115,11
@@
class IdIterator(BaseIterator):
# This is a special invocation that returns the underlying
# APIMethod class
model = ModelParser().parse(self.method(create=True), data)
-
if hasattr(self.method, '__self__'):
self.method.__self__.parser = old_parser
result = self.method.__self__.parser.parse(self.method(create=True), data)
else:
- result =
self.method()
+ result =
model
if len(self.results) != 0:
self.index += 1