Update of /cvsroot/pywin32/pywin32/com/win32comext/axdebug
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv4132/com/win32comext/axdebug
Modified Files:
documents.py util.py
Log Message:
move to dictionary iterators where possible
Index: util.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/axdebug/util.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** util.py 26 Nov 2008 08:39:33 -0000 1.4
--- util.py 4 Dec 2008 07:23:46 -0000 1.5
***************
*** 53,57 ****
from win32com.server.util import unwrap
print "Wrapped items:"
! for key, items in all_wrapped.items():
print key,
try:
--- 53,57 ----
from win32com.server.util import unwrap
print "Wrapped items:"
! for key, items in all_wrapped.iteritems():
print key,
try:
Index: documents.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/axdebug/documents.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** documents.py 26 Nov 2008 08:39:33 -0000 1.3
--- documents.py 4 Dec 2008 07:23:46 -0000 1.4
***************
*** 113,117 ****
def Close(self):
! for cc, node in self.ccsAndNodes.values():
try:
# Must close the node before closing the provider
--- 113,117 ----
def Close(self):
! for cc, node in self.ccsAndNodes.itervalues():
try:
# Must close the node before closing the provider
|