Skip to content

Commit

Permalink
chore: drop Python2-specific alias
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Jun 16, 2021
1 parent 026ee31 commit 4165633
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions google/api_core/grpc_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __iter__(self):
"""This iterator is also an iterable that returns itself."""
return self

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

# Alias needed for Python 2/3 support.
__next__ = next

# grpc.Call & grpc.RpcContext interface

def add_callback(self, callback):
Expand Down

0 comments on commit 4165633

Please sign in to comment.