[Zope-CVS] CVS: Packages/HTMLStructure - Wrapper.py:1.2
Evan Simpson
evan@zope.com
Fri, 1 Feb 2002 15:25:42 -0500
Update of /cvs-repository/Packages/HTMLStructure
In directory cvs.zope.org:/tmp/cvs-serv11034
Modified Files:
Wrapper.py
Log Message:
Fix bugs in attribute getters.
=== Packages/HTMLStructure/Wrapper.py 1.1 => 1.2 ===
'''Tag attributes as a dictionary'''
attrs = self._attrs()
- if not attrs: return
amap = {}
for name, value in attrs:
amap[name.lower()] = value
+ return amap
def tAttrNames(self):
'''Tag attribute names as a list'''
attrs = self._attrs()
- if not attrs: return
return [name for name, value in attrs]