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() |