E5XML/XMLStreamReaderBase.py

changeset 2953
703452a2876f
parent 2302
f29e9405c851
child 2992
dbdf27746da5
equal deleted inserted replaced
2952:94fc661a54a2 2953:703452a2876f
93 """ 93 """
94 Public method to read the given attribute of the current tag. 94 Public method to read the given attribute of the current tag.
95 95
96 @param name name of the attribute (string) 96 @param name name of the attribute (string)
97 @param default default value (string) 97 @param default default value (string)
98 @return value of the requested tag attribute (string)
98 """ 99 """
99 att = self.attributes().value(name) 100 att = self.attributes().value(name)
100 if att == "": 101 if att == "":
101 att = default 102 att = default
102 return att 103 return att

eric ide

mercurial