| Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29490
Modified Files:
	browseProjects.py 
Log Message:
Fix [ 817035 ] Exception in browsing libraries (Tools->Browse PythonPath
Index: browseProjects.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/tools/browseProjects.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** browseProjects.py	1 Sep 1999 23:33:57 -0000	1.1
--- browseProjects.py	13 Jul 2004 05:29:53 -0000	1.2
***************
*** 17,21 ****
  class HLICLBRItem(hierlist.HierListItem):
  	def __init__(self, name, file, lineno, suffix = ""):
! 		self.name = name
  		self.file = file
  		self.lineno = lineno
--- 17,24 ----
  class HLICLBRItem(hierlist.HierListItem):
  	def __init__(self, name, file, lineno, suffix = ""):
! 		# If the 'name' object itself has a .name, use it.  Not sure
! 		# how this happens, but seems pyclbr related. 
! 		# See PyWin32 bug 817035
! 		self.name = getattr(name, "name", name)
  		self.file = file
  		self.lineno = lineno
 |