X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=python%2Fcumulus%2Fstore%2Fsftp.py;h=7ea8815b8b1d214d724b09b3afeeb2900d9de288;hp=de77b6465e52edb874b609361b09c35230ece2f3;hb=f4fd8130cafbf260c70ea57916713527a6516757;hpb=965a6382b13af5fe81cf40e63e525a3f8fb1d523 diff --git a/python/cumulus/store/sftp.py b/python/cumulus/store/sftp.py index de77b64..7ea8815 100644 --- 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 +#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):