Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: third_party/gsutil/boto/boto/manage/volume.py

Issue 10199002: Upgrade gsutil to 3.4 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/gsutil/boto/boto/manage/volume.py
diff --git a/third_party/gsutil/20110627/boto/boto/manage/volume.py b/third_party/gsutil/boto/boto/manage/volume.py
similarity index 99%
rename from third_party/gsutil/20110627/boto/boto/manage/volume.py
rename to third_party/gsutil/boto/boto/manage/volume.py
index 66a458f67f2eb9b9dd303509629113d4f6d206c6..52c344fed17efb8b5f6cbbc5b5ff22b739065be3 100644
--- a/third_party/gsutil/20110627/boto/boto/manage/volume.py
+++ b/third_party/gsutil/boto/boto/manage/volume.py
@@ -24,11 +24,11 @@ from boto.sdb.db.model import Model
from boto.sdb.db.property import StringProperty, IntegerProperty, ListProperty, ReferenceProperty, CalculatedProperty
from boto.manage.server import Server
from boto.manage import propget
+import boto.utils
import boto.ec2
import time
import traceback
from contextlib import closing
-import dateutil.parser
import datetime
@@ -191,7 +191,7 @@ class Volume(Model):
for snapshot in rs:
if snapshot.volume_id in all_vols:
if snapshot.progress == '100%':
- snapshot.date = dateutil.parser.parse(snapshot.start_time)
+ snapshot.date = boto.utils.parse_ts(snapshot.start_time)
snapshot.keep = True
snaps.append(snapshot)
snaps.sort(cmp=lambda x,y: cmp(x.date, y.date))
« no previous file with comments | « third_party/gsutil/boto/boto/manage/test_manage.py ('k') | third_party/gsutil/boto/boto/mashups/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698