diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2009-08-31 00:59:53 -0400 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2009-08-31 01:02:10 -0400 |
commit | 75b0cbb957510053760c1ae4f519cd6601040e96 (patch) | |
tree | 0db4207d99bb89835c7736334f06838c3dc1aefa /Makefile | |
parent | 3f21f465880443b846c219675c1f4b50c5a568ac (diff) |
Fix checking for missing fields in XML response
token = bug.find("token")
self.token = token.text if token else None
Was behaving strangely: apparently ElementTree can be logically
false when non-None. Switch to the more explicit:
self.token = None if token is None else token.text
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions