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)

  • Participants
  • Parent commits 32e4fa1
  • Branches master

Comments (0)

Files changed (1)

File gevent/

-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,