Skip to content

Commit 9698978

Browse files
committed
Python 3.5 doesn't like localizing builtins inside functions, apparently.
1 parent a698339 commit 9698978

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

postgresql/driver/pq3.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,14 +1772,13 @@ def _load_copy_chunks(self, chunks, *parameters):
17721772
self.database._pq_complete()
17731773
self.database.pq.synchronize()
17741774

1775-
def _load_tuple_chunks(self, chunks):
1775+
def _load_tuple_chunks(self, chunks, tuple=tuple):
17761776
pte = self._raise_parameter_tuple_error
17771777
last = (element.SynchronizeMessage,)
17781778

17791779
Bind = element.Bind
17801780
Instruction = xact.Instruction
17811781
Execute = element.Execute
1782-
tuple = tuple
17831782

17841783
try:
17851784
for chunk in chunks:

0 commit comments

Comments
 (0)