(xtag, aname)
| 142 | |
| 143 | |
| 144 | def get_true_attrib(xtag, aname): |
| 145 | if aname in xtag.attrib: |
| 146 | if xtag.attrib[aname] != 'true': |
| 147 | raise Exception("Unexpected value %s for %s attribute" % (xtag.attrib[aname], aname)) |
| 148 | return True |
| 149 | else: |
| 150 | return False |
| 151 | |
| 152 | |
| 153 | def get_optional_true_attrib(xtag, aname): |