diff options
| author | Brian Lamar <brian.lamar@rackspace.com> | 2011-03-28 15:10:34 -0400 |
|---|---|---|
| committer | Brian Lamar <brian.lamar@rackspace.com> | 2011-03-28 15:10:34 -0400 |
| commit | 78a9ec232cde1172fa4c639ebdcbf88967bf8e9c (patch) | |
| tree | c74494131bddf0408e082bbf040e240d82644a39 /nova | |
| parent | f29d17dde27e407dc0b03548f0fee88b6dfbe5c5 (diff) | |
Fixed superfluous parentheses around locals().
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/image/glance.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/image/glance.py b/nova/image/glance.py index 34fc78e71..d8f51429e 100644 --- a/nova/image/glance.py +++ b/nova/image/glance.py @@ -230,13 +230,13 @@ def _parse_glance_iso8601_timestamp(timestamp): """ Parse a subset of iso8601 timestamps into datetime objects """ - ISO_FORMATS = ["%Y-%m-%dT%H:%M:%S.%f", "%Y-%m-%dT%H:%M:%S"] + iso_formats = ["%Y-%m-%dT%H:%M:%S.%f", "%Y-%m-%dT%H:%M:%S"] - for iso_format in ISO_FORMATS: + for iso_format in iso_formats: try: return datetime.datetime.strptime(timestamp, iso_format) except ValueError: pass raise ValueError(_("""%(timestamp)s does not follow any of the \ -signatures: %(ISO_FORMATS)s""") % (locals())) +signatures: %(ISO_FORMATS)s""") % locals()) |
