Update of /cvsroot/pywin32/pywin32/com/win32comext/axdebug
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv23408/com/win32comext/axdebug
Modified Files:
codecontainer.py gateways.py
Log Message:
remove use of string module
Index: gateways.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/axdebug/gateways.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** gateways.py 18 Jun 2006 13:18:26 -0000 1.3
--- gateways.py 4 Dec 2008 03:38:20 -0000 1.4
***************
*** 8,12 ****
import win32com.server.connect
import winerror
- import string
class EnumDebugCodeContexts(ListEnumeratorGateway):
--- 8,11 ----
***************
*** 71,76 ****
"""Provides the functionality of IDebugDocumentProvider, plus a context within a project tree.
"""
! _public_methods_ = string.split("""EnumChildren GetParent SetDocumentProvider
! Close Attach Detach""") + \
DebugDocumentProvider._public_methods_
_com_interfaces_ = [axdebug.IID_IDebugDocumentProvider] + \
--- 70,75 ----
"""Provides the functionality of IDebugDocumentProvider, plus a context within a project tree.
"""
! _public_methods_ = """EnumChildren GetParent SetDocumentProvider
! Close Attach Detach""".split() + \
DebugDocumentProvider._public_methods_
_com_interfaces_ = [axdebug.IID_IDebugDocumentProvider] + \
***************
*** 100,104 ****
"""Event interface for DebugApplicationNode object.
"""
! _public_methods_ = string.split("onAddChild onRemoveChild onDetach")
_com_interfaces_ = [axdebug.IID_IDebugApplicationNodeEvents]
def __init__(self):
--- 99,103 ----
"""Event interface for DebugApplicationNode object.
"""
! _public_methods_ = "onAddChild onRemoveChild onDetach".split()
_com_interfaces_ = [axdebug.IID_IDebugApplicationNodeEvents]
def __init__(self):
***************
*** 204,209 ****
class DebugDocumentTextEvents:
! _public_methods_ = string.split("""onDestroy onInsertText onRemoveText
! onReplaceText onUpdateTextAttributes onUpdateDocumentAttributes""")
_com_interfaces_ = [ axdebug.IID_IDebugDocumentTextEvents ]
def __init__(self):
--- 203,209 ----
class DebugDocumentTextEvents:
! _public_methods_ = """onDestroy onInsertText onRemoveText
! onReplaceText onUpdateTextAttributes
! onUpdateDocumentAttributes""".split()
_com_interfaces_ = [ axdebug.IID_IDebugDocumentTextEvents ]
def __init__(self):
Index: codecontainer.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/axdebug/codecontainer.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** codecontainer.py 27 Nov 2008 09:42:42 -0000 1.7
--- codecontainer.py 4 Dec 2008 03:38:20 -0000 1.8
***************
*** 5,9 ****
"""
! import string, sys
from win32com.axdebug import axdebug
import tokenize
--- 5,9 ----
"""
! import sys
from win32com.axdebug import axdebug
import tokenize
***************
*** 15,23 ****
_keywords = {} # set of Python keywords
! for name in string.split("""
and assert break class continue def del elif else except exec
finally for from global if import in is lambda not
or pass print raise return try while
! """):
_keywords[name] = 1
--- 15,23 ----
_keywords = {} # set of Python keywords
! for name in """
and assert break class continue def del elif else except exec
finally for from global if import in is lambda not
or pass print raise return try while
! """.split():
_keywords[name] = 1
***************
*** 89,93 ****
def _buildline(self, pos):
! i = string.find(self.text, '\n', pos)
if i < 0:
newpos = len(self.text)
--- 89,93 ----
def _buildline(self, pos):
! i = self.text.find('\n', pos)
if i < 0:
newpos = len(self.text)
***************
*** 221,225 ****
fname = name
if dnt==axdebug.DOCUMENTNAMETYPE_APPNODE:
! return string.split(name, ".")[-1]
elif dnt==axdebug.DOCUMENTNAMETYPE_TITLE:
return fname
--- 221,225 ----
fname = name
if dnt==axdebug.DOCUMENTNAMETYPE_APPNODE:
! return name.split(".")[-1]
elif dnt==axdebug.DOCUMENTNAMETYPE_TITLE:
return fname
|