Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework/editor
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv4678/Pythonwin/pywin/framework/editor
Modified Files:
Tag: py3k
ModuleBrowser.py
Log Message:
many more py3k syntax improvements thanks to 2to3
Index: ModuleBrowser.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework/editor/ModuleBrowser.py,v
retrieving revision 1.8.4.3
retrieving revision 1.8.4.4
diff -C2 -d -r1.8.4.3 -r1.8.4.4
*** ModuleBrowser.py 23 Oct 2008 09:45:16 -0000 1.8.4.3
--- ModuleBrowser.py 4 Dec 2008 07:32:05 -0000 1.8.4.4
***************
*** 19,23 ****
def GetSubList(self):
ret = []
! for item in self.clbrdata.itervalues():
if item.__class__ != pyclbr.Class: # ie, it is a pyclbr Function instance (only introduced post 1.5.2)
ret.append(HierListCLBRFunction( item ) )
--- 19,23 ----
def GetSubList(self):
ret = []
! for item in self.clbrdata.values():
if item.__class__ != pyclbr.Class: # ie, it is a pyclbr Function instance (only introduced post 1.5.2)
ret.append(HierListCLBRFunction( item ) )
***************
*** 77,81 ****
r1.sort()
r2=[]
! for meth, lineno in self.methods.iteritems():
r2.append(HierListCLBRMethod(meth, self.file, lineno))
r2.sort(key=lambda m:m.GetText())
--- 77,81 ----
r1.sort()
r2=[]
! for meth, lineno in self.methods.items():
r2.append(HierListCLBRMethod(meth, self.file, lineno))
r2.sort(key=lambda m:m.GetText())
|