Commits

Denis Bilenko committed e6eddcd

gevent: use timeout=None to indicate no timeout instead of timeout=-1

the future versions of gevent will only allow timeout=-1. (0.12.2 and older allow both None and -1)

Comments (0)

Files changed (1)

gevent/psyco_gevent.py

 
     psycopg2.extensions.set_wait_callback(gevent_wait_callback)
 
-def gevent_wait_callback(conn, timeout=-1,
+def gevent_wait_callback(conn, timeout=None,
         # access these objects with LOAD_FAST instead of LOAD_GLOBAL lookup
         POLL_OK = psycopg2.extensions.POLL_OK,
         POLL_READ = psycopg2.extensions.POLL_READ,