Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18639/Pythonwin/pywin/scintilla
Modified Files:
document.py
Log Message:
various syntax modernizations
Index: document.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla/document.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** document.py 2 Sep 2008 19:52:33 -0000 1.7
--- document.py 26 Nov 2008 08:39:33 -0000 1.8
***************
*** 126,135 ****
for view in self.GetAllViews():
func = getattr(view, funcName)
! apply(func, args)
def _ApplyOptionalToViews(self, funcName, *args):
for view in self.GetAllViews():
func = getattr(view, funcName, None)
if func is not None:
! apply(func, args)
def GetEditorView(self):
# Find the first frame with a view,
--- 126,135 ----
for view in self.GetAllViews():
func = getattr(view, funcName)
! func(*args)
def _ApplyOptionalToViews(self, funcName, *args):
for view in self.GetAllViews():
func = getattr(view, funcName, None)
if func is not None:
! func(*args)
def GetEditorView(self):
# Find the first frame with a view,
***************
*** 151,155 ****
for v in self.doc.GetAllViews():
if v.GetSafeHwnd() == hwndFrom:
! return apply(getattr(v, self.name), (std, extra))
# Delegate to the document, but only from a single view (as each view sends it seperately)
--- 151,155 ----
for v in self.doc.GetAllViews():
if v.GetSafeHwnd() == hwndFrom:
! return getattr(v, self.name)(*(std, extra))
# Delegate to the document, but only from a single view (as each view sends it seperately)
***************
*** 161,163 ****
(hwndFrom, idFrom, code) = std
if hwndFrom == self.doc.GetEditorView().GetSafeHwnd():
! apply(self.delegate, (std, extra))
--- 161,163 ----
(hwndFrom, idFrom, code) = std
if hwndFrom == self.doc.GetEditorView().GetSafeHwnd():
! self.delegate(*(std, extra))
|