py3: alias next to __next__ in commandserver.py
authorYuya Nishihara <yuya@tcha.org>
Tue, 16 Oct 2018 07:57:40 +0200
changeset 40358 afbfcc4e3473
parent 40357 efbf7de09d2a
child 40359 558114fa7bc1
py3: alias next to __next__ in commandserver.py
mercurial/commandserver.py
--- a/mercurial/commandserver.py	Tue Oct 16 07:57:05 2018 +0200
+++ b/mercurial/commandserver.py	Tue Oct 16 07:57:40 2018 +0200
@@ -149,6 +149,8 @@
             raise StopIteration
         return l
 
+    __next__ = next
+
     def __getattr__(self, attr):
         if attr in (r'isatty', r'fileno', r'tell', r'seek'):
             raise AttributeError(attr)