[pywin32-checkins] pywin32/com/win32comext/shell/demos/servers shell_view.py, 1.14, 1.15
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2009-02-16 13:17:04
|
Update of /cvsroot/pywin32/pywin32/com/win32comext/shell/demos/servers In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv25428/com/win32comext/shell/demos/servers Modified Files: shell_view.py Log Message: Death to cmp (in py3k at least) - long live richcmp Index: shell_view.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32comext/shell/demos/servers/shell_view.py,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** shell_view.py 27 Nov 2008 09:33:22 -0000 1.14 --- shell_view.py 16 Feb 2009 11:35:10 -0000 1.15 *************** *** 148,152 **** # Interface methods def CompareIDs(self, param, id1, id2): ! return cmp(id1, id2) def GetUIObjectOf(self, hwndOwner, pidls, iid, inout): # delegate to the shell. --- 148,156 ---- # Interface methods def CompareIDs(self, param, id1, id2): ! if id1 < id2: ! return -1 ! if id1 == id2: ! return 0 ! return 1 def GetUIObjectOf(self, hwndOwner, pidls, iid, inout): # delegate to the shell. |