File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -436,7 +436,7 @@ class Snapshot(_SnapshotBase):
436
436
at a timestamp where all previously committed transactions are visible.
437
437
438
438
:type session: :class:`~google.cloud.spanner_v1.session.Session`
439
- :param session: the session used to perform the commit.
439
+ :param session: The session used to perform the commit.
440
440
441
441
:type read_timestamp: :class:`datetime.datetime`
442
442
:param read_timestamp: Execute all reads at the given timestamp.
@@ -454,7 +454,7 @@ class Snapshot(_SnapshotBase):
454
454
``exact_staleness`` old.
455
455
456
456
:type multi_use: :class:`bool`
457
- :param multi_use: If true, multipl :meth:`read` / :meth:`execute_sql`
457
+ :param multi_use: If true, multiple :meth:`read` / :meth:`execute_sql`
458
458
calls can be performed with the snapshot in the
459
459
context of a read-only transaction, used to ensure
460
460
isolation / consistency. Incompatible with
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ class StreamedResultSet(object):
42
42
def __init__ (self , response_iterator , source = None ):
43
43
self ._response_iterator = response_iterator
44
44
self ._rows = [] # Fully-processed rows
45
- self ._counter = 0 # Counter for processed responses
46
45
self ._metadata = None # Until set from first PRS
47
46
self ._stats = None # Until set from last PRS
48
47
self ._current_row = [] # Accumulated values for incomplete row
@@ -114,7 +113,6 @@ def _consume_next(self):
114
113
Parse the result set into new/existing rows in :attr:`_rows`
115
114
"""
116
115
response = six .next (self ._response_iterator )
117
- self ._counter += 1
118
116
119
117
if self ._metadata is None : # first response
120
118
metadata = self ._metadata = response .metadata
You can’t perform that action at this time.
0 commit comments