src/reportlab/lib/rparsexml.py
branchpy33
changeset 3723 99aa837b6703
parent 3721 0c93dd8ff567
child 3782 bb8cb5194b0f
equal deleted inserted replaced
3722:29c11b905751 3723:99aa837b6703
   380         return parsedxml
   380         return parsedxml
   381     (name, attdict, textlist, extra) = parsedxml
   381     (name, attdict, textlist, extra) = parsedxml
   382     if not attdict: attdict={}
   382     if not attdict: attdict={}
   383     join = string.join
   383     join = string.join
   384     attlist = []
   384     attlist = []
   385     for k in list(attdict.keys()):
   385     for k in attdict.keys():
   386         v = attdict[k]
   386         v = attdict[k]
   387         attlist.append("%s=%s" % (k, repr(v)))
   387         attlist.append("%s=%s" % (k, repr(v)))
   388     attributes = join(attlist, " ")
   388     attributes = join(attlist, " ")
   389     if not name and attributes:
   389     if not name and attributes:
   390         raise ValueError("name missing with attributes???")
   390         raise ValueError("name missing with attributes???")