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

Unified Diff: boto/sdb/db/sequence.py

Issue 8386013: Merging in latest boto. (Closed) Base URL: svn://svn.chromium.org/boto
Patch Set: Redoing vendor drop by deleting and then merging. Created 9 years, 2 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
« no previous file with comments | « boto/sdb/db/property.py ('k') | boto/sdb/domain.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: boto/sdb/db/sequence.py
diff --git a/boto/sdb/db/sequence.py b/boto/sdb/db/sequence.py
index be79c56ba6250f9af590a941df8ce795ad96b77e..8d10b1764360a8a1cf888cdfe094c6be32f2bf83 100644
--- a/boto/sdb/db/sequence.py
+++ b/boto/sdb/db/sequence.py
@@ -197,9 +197,9 @@ class Sequence(object):
def _connect(self):
"""Connect to our domain"""
if not self._db:
+ import boto
+ sdb = boto.connect_sdb()
if not self.domain_name:
- import boto
- sdb = boto.connect_sdb()
self.domain_name = boto.config.get("DB", "sequence_db", boto.config.get("DB", "db_name", "default"))
try:
self._db = sdb.get_domain(self.domain_name)
@@ -219,6 +219,3 @@ class Sequence(object):
def delete(self):
"""Remove this sequence"""
self.db.delete_attributes(self.id)
-
- def __del__(self):
- self.delete()
« no previous file with comments | « boto/sdb/db/property.py ('k') | boto/sdb/domain.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698