~txaws-dev/txaws/trunk

« back to all changes in this revision

Viewing changes to txaws/ec2/exception.py

Merged silence-deprecation-warnings [r=oubiwann] [f=768311]

Exception.message is no longer accessed which silences deprecation
warnings in Python 2.6.  Variables are explicitly compared with None
which silences deprecation warnings in Python 2.7.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
    """
11
11
    def _set_400_error(self, tree):
12
12
        errors_node = tree.find(".//Errors")
13
 
        if errors_node:
 
13
        if errors_node is not None:
14
14
            for error in errors_node:
15
15
                data = self._node_to_dict(error)
16
16
                if data: