@@ -779,7 +779,7 @@ curs_fetchone(cursorObject *self, PyObject *dummy)
779779       successive requests to reallocate it */ 
780780    if  (self -> row  >= self -> rowcount 
781781        &&  self -> conn -> async_cursor 
782-         &&  PyWeakref_GetObject (self -> conn -> async_cursor ) ==  (PyObject * )self )
782+         &&  psyco_weakref_get_object (self -> conn -> async_cursor ) ==  (PyObject * )self )
783783        CLEARPGRES (self -> pgres );
784784
785785    return  res ;
@@ -826,7 +826,7 @@ curs_next_named(cursorObject *self)
826826       successive requests to reallocate it */ 
827827    if  (self -> row  >= self -> rowcount 
828828        &&  self -> conn -> async_cursor 
829-         &&  PyWeakref_GetObject (self -> conn -> async_cursor ) ==  (PyObject * )self )
829+         &&  psyco_weakref_get_object (self -> conn -> async_cursor ) ==  (PyObject * )self )
830830        CLEARPGRES (self -> pgres );
831831
832832    return  res ;
@@ -911,7 +911,7 @@ curs_fetchmany(cursorObject *self, PyObject *args, PyObject *kwords)
911911       successive requests to reallocate it */ 
912912    if  (self -> row  >= self -> rowcount 
913913        &&  self -> conn -> async_cursor 
914-         &&  PyWeakref_GetObject (self -> conn -> async_cursor ) ==  (PyObject * )self )
914+         &&  psyco_weakref_get_object (self -> conn -> async_cursor ) ==  (PyObject * )self )
915915        CLEARPGRES (self -> pgres );
916916
917917    /* success */ 
@@ -980,7 +980,7 @@ curs_fetchall(cursorObject *self, PyObject *dummy)
980980       successive requests to reallocate it */ 
981981    if  (self -> row  >= self -> rowcount 
982982        &&  self -> conn -> async_cursor 
983-         &&  PyWeakref_GetObject (self -> conn -> async_cursor ) ==  (PyObject * )self )
983+         &&  psyco_weakref_get_object (self -> conn -> async_cursor ) ==  (PyObject * )self )
984984        CLEARPGRES (self -> pgres );
985985
986986    /* success */ 
0 commit comments