projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add some further documentation on the sftp backend
[cumulus.git]
/
python
/
cumulus
/
store
/
__init__.py
diff --git
a/python/cumulus/store/__init__.py
b/python/cumulus/store/__init__.py
index
f32ff9f
..
7150a1f
100644
(file)
--- a/
python/cumulus/store/__init__.py
+++ b/
python/cumulus/store/__init__.py
@@
-60,5
+60,15
@@
class Store (object):
pass
pass
+ def close(self):
+ """Tear down the connection explicitly if needed
+
+ Currently needed for sftp to be able to end the program."""
+
+ pass
+
+ def __del__(self):
+ self.close()
+
def open(url):
return Store(url)
def open(url):
return Store(url)