Skip to content

Commit

Permalink
Python 3: change remaining next method in objidl.IEnumMoniker into __…
Browse files Browse the repository at this point in the history
…next__ (PR #10386)

objidl.IEnumMoniker is used as an iterable in the visual studio appModule. However, due to python 2/3 change (next method should be __next__), this was missed during conversion.
  • Loading branch information
LeonarddeR authored and feerrenrut committed Oct 15, 2019
1 parent 86b5b7e commit 5bd8872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/objidl.py
Expand Up @@ -189,7 +189,7 @@ def Next(self, celt):
def __iter__(self):
return self

def next(self):
def __next__(self):
item, fetched = self.Next(1)
if fetched:
return item
Expand Down

0 comments on commit 5bd8872

Please sign in to comment.