Skip to content

Commit 4165633

Browse files
committed
chore: drop Python2-specific alias
1 parent 026ee31 commit 4165633

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

google/api_core/grpc_helpers.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def __iter__(self):
9292
"""This iterator is also an iterable that returns itself."""
9393
return self
9494

95-
def next(self):
95+
def __next__(self):
9696
"""Get the next response from the stream.
9797
9898
Returns:
@@ -108,9 +108,6 @@ def next(self):
108108
# If the stream has already returned data, we cannot recover here.
109109
raise exceptions.from_grpc_error(exc) from exc
110110

111-
# Alias needed for Python 2/3 support.
112-
__next__ = next
113-
114111
# grpc.Call & grpc.RpcContext interface
115112

116113
def add_callback(self, callback):

0 commit comments

Comments
 (0)