Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv21342/Pythonwin/pywin/scintilla
Modified Files:
find.py formatter.py
Log Message:
Move to 'new style' exception raising.
Index: find.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla/find.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** find.py 3 Sep 2008 03:02:02 -0000 1.11
--- find.py 1 Oct 2008 14:44:53 -0000 1.12
***************
*** 27,31 ****
def __setattr__(self, attr, val):
if not hasattr(self, attr):
! raise AttributeError, attr
self.__dict__[attr]=val
--- 27,31 ----
def __setattr__(self, attr, val):
if not hasattr(self, attr):
! raise AttributeError(attr)
self.__dict__[attr]=val
Index: formatter.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla/formatter.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** formatter.py 9 Aug 2008 16:47:07 -0000 1.14
--- formatter.py 1 Oct 2008 14:44:53 -0000 1.15
***************
*** 85,89 ****
def HookFormatter(self, parent = None):
! raise NotImplementedError
# Used by the IDLE extensions to quickly determine if a character is a string.
--- 85,89 ----
def HookFormatter(self, parent = None):
! raise NotImplementedError()
# Used by the IDLE extensions to quickly determine if a character is a string.
***************
*** 107,111 ****
def SetStyles(self):
! raise NotImplementedError
def GetSampleText(self):
--- 107,111 ----
def SetStyles(self):
! raise NotImplementedError()
def GetSampleText(self):
***************
*** 236,240 ****
def ColorizeString(self, str, charStart, styleStart):
! raise RuntimeError, "You must override this method"
def Colorize(self, start=0, end=-1):
--- 236,240 ----
def ColorizeString(self, str, charStart, styleStart):
! raise RuntimeError("You must override this method")
def Colorize(self, start=0, end=-1):
|