[PATCH] D56250: python compat - iterator protocol
Michael Platings via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 3 05:12:09 PST 2019
michaelplatings requested changes to this revision.
michaelplatings added inline comments.
This revision now requires changes to proceed.
================
Comment at: utils/gdb-scripts/prettyprinters.py:73
- def next(self):
+ def __next__(self):
if self.cur == self.end:
----------------
I think this needs an associated
if sys.version_info.major == 2:
next == __next__
================
Comment at: utils/gdb-scripts/prettyprinters.py:172
- def next(self):
+ def __next__(self):
if self.cur == self.end:
----------------
I think this needs an associated
if sys.version_info.major == 2:
next == __next__
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56250/new/
https://reviews.llvm.org/D56250
More information about the llvm-commits
mailing list