[ctypes-commit] ctypes/ctypes __init__.py,1.90,1.91
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2006-05-23 18:28:06
|
Update of /cvsroot/ctypes/ctypes/ctypes In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv15628 Modified Files: __init__.py Log Message: Avoid FutureWarning in CDLL.__repr__ when id(self) is negative or larger than sys.maxint. Index: __init__.py =================================================================== RCS file: /cvsroot/ctypes/ctypes/ctypes/__init__.py,v retrieving revision 1.90 retrieving revision 1.91 diff -C2 -d -r1.90 -r1.91 *** __init__.py 19 May 2006 20:06:36 -0000 1.90 --- __init__.py 23 May 2006 18:27:57 -0000 1.91 *************** *** 302,306 **** (self.__class__.__name__, self._name, (self._handle & (_sys.maxint*2 + 1)), ! id(self)) def __getattr__(self, name): --- 302,306 ---- (self.__class__.__name__, self._name, (self._handle & (_sys.maxint*2 + 1)), ! id(self) & (_sys.maxint*2 + 1)) def __getattr__(self, name): |