diff options
| author | Jason Koelker <jason@koelker.net> | 2011-04-18 23:40:03 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-04-18 23:40:03 +0000 |
| commit | d526ce5b0b7eb1dc3ee99d7bde6c6544c3da2183 (patch) | |
| tree | 2add90c59734bcde4f51ecea1290f5455f4a032d /nova/api | |
| parent | 52b675da69d573529103e405378c5d3028efa99f (diff) | |
| parent | f59f792c83c7f18e48903165df8d3dd78f45dd4c (diff) | |
use 'is not None' instead of '!= None'
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/ec2/apirequest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/ec2/apirequest.py b/nova/api/ec2/apirequest.py index d7ad08d2f..6672e60bb 100644 --- a/nova/api/ec2/apirequest.py +++ b/nova/api/ec2/apirequest.py @@ -196,7 +196,7 @@ class APIRequest(object): elif isinstance(data, datetime.datetime): data_el.appendChild( xml.createTextNode(_database_to_isoformat(data))) - elif data != None: + elif data is not None: data_el.appendChild(xml.createTextNode(str(data))) return data_el |
