Fix another python2/3 incompat: xrange

This commit is contained in:
Rafa de la Torre
2019-11-13 17:16:53 +01:00
parent 203bd64058
commit f7d10adbc2

View File

@@ -146,7 +146,7 @@ AS $$
rv = plpy.execute(plan, [server_internal], 1)
port = rv[0]['port']
for i in xrange(n_samples):
for i in range(n_samples):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(timeout_seconds)