Skip to content

Commit

Permalink
Remove newer python-ism from S3/Utils.py
Browse files Browse the repository at this point in the history
We still need this to work on Python 2.6.
  • Loading branch information
mdomsch committed Jan 20, 2016
1 parent bc38c2a commit 076c0c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S3/Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ def parseNodes(nodes):
retval_item[name] = parseNodes([child])
else:
found_text = node.findtext(".//%s" % child.tag)
retval_item[name] = decode_from_s3(found_text) if found_text is not None else None
if found_text is not None:
retval_item[name] = decode_from_s3(found_text)
else:
retval_item[name] = None
retval.append(retval_item)
return retval
__all__.append("parseNodes")
Expand Down

0 comments on commit 076c0c9

Please sign in to comment.