Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18926/Pythonwin/pywin/scintilla
Modified Files:
formatter.py
Log Message:
modernizations: replace most remaining has_key() calls with 'in' statements.
Index: formatter.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla/formatter.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** formatter.py 1 Oct 2008 14:44:53 -0000 1.15
--- formatter.py 27 Nov 2008 09:42:41 -0000 1.16
***************
*** 101,105 ****
assert stylenum is not None, "We must have a style number"
assert style.stylenum is None, "Style has already been registered"
! assert not self.styles.has_key(stylenum), "We are reusing a style number!"
style.stylenum = stylenum
self.styles[style.name] = style
--- 101,105 ----
assert stylenum is not None, "We must have a style number"
assert style.stylenum is None, "Style has already been registered"
! assert stylenum not in self.styles, "We are reusing a style number!"
style.stylenum = stylenum
self.styles[style.name] = style
|