[pywin32-checkins] pywin32/win32/Demos/security security_enums.py, 1.2.2.2, 1.2.2.3
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-12-04 07:32:11
|
Update of /cvsroot/pywin32/pywin32/win32/Demos/security In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv4678/win32/Demos/security Modified Files: Tag: py3k security_enums.py Log Message: many more py3k syntax improvements thanks to 2to3 Index: security_enums.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/Demos/security/security_enums.py,v retrieving revision 1.2.2.2 retrieving revision 1.2.2.3 diff -C2 -d -r1.2.2.2 -r1.2.2.3 *** security_enums.py 27 Nov 2008 11:31:05 -0000 1.2.2.2 --- security_enums.py 4 Dec 2008 07:32:06 -0000 1.2.2.3 *************** *** 20,24 **** def lookup_name(self, const_val): """Looks up the name of a particular value.""" ! for k,v in list(self.__dict__.items()): if v==const_val: return k --- 20,24 ---- def lookup_name(self, const_val): """Looks up the name of a particular value.""" ! for k,v in self.__dict__.items(): if v==const_val: return k *************** *** 29,33 **** flag_names=[] unknown_flags=flags ! for k,v in list(self.__dict__.items()): if flags & v == v: flag_names.append(k) --- 29,33 ---- flag_names=[] unknown_flags=flags ! for k,v in self.__dict__.items(): if flags & v == v: flag_names.append(k) |