projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
work for python 2.5
[cumulus.git]
/
python
/
cumulus
/
store
/
sftp.py
diff --git
a/python/cumulus/store/sftp.py
b/python/cumulus/store/sftp.py
index
de77b64
..
7ea8815
100644
(file)
--- a/
python/cumulus/store/sftp.py
+++ b/
python/cumulus/store/sftp.py
@@
-7,6
+7,12
@@
import os, os.path
import getpass
import re
import sys
import getpass
import re
import sys
+#needed for python 2.5
+try:
+ from __future__ import with_statement
+except ImportError, e:
+ raise ImportError('We need the "with" statement, avalible with python >=2.5')
+
class SSHHostConfig(dict):
def __init__(self, hostname, user = None, filename = None):
class SSHHostConfig(dict):
def __init__(self, hostname, user = None, filename = None):