Skip to content

Commit

Permalink
More accurate __len__ for ResultGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
facetoe committed Dec 6, 2015
1 parent f661efb commit f27f633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zenpy/lib/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __iter__(self):
return self

def __len__(self):
return len(self.values)
return self.count

def __next__(self):
return self.next()
Expand Down

0 comments on commit f27f633

Please sign in to comment.