From 981f768a62402a5aaa9f9f0ddfb4e14faa0d4442 Mon Sep 17 00:00:00 2001 From: Scott Maxwell Date: Tue, 19 Nov 2013 09:37:33 -0800 Subject: [PATCH] Remove `from __future__ import with_statement` --- demos/demo_keygen.py | 1 - demos/demo_sftp.py | 2 -- paramiko/win_pageant.py | 2 -- tests/test_sftp.py | 2 -- 4 files changed, 7 deletions(-) diff --git a/demos/demo_keygen.py b/demos/demo_keygen.py index 88facd4..860ee4e 100755 --- a/demos/demo_keygen.py +++ b/demos/demo_keygen.py @@ -17,7 +17,6 @@ # You should have received a copy of the GNU Lesser General Public License # along with Paramiko; if not, write to the Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. -from __future__ import with_statement import sys diff --git a/demos/demo_sftp.py b/demos/demo_sftp.py index c04d6e1..a34f2b1 100755 --- a/demos/demo_sftp.py +++ b/demos/demo_sftp.py @@ -20,8 +20,6 @@ # based on code provided by raymond mosteller (thanks!) -from __future__ import with_statement - import base64 import getpass import os diff --git a/paramiko/win_pageant.py b/paramiko/win_pageant.py index c0d0f4a..3c23f2f 100644 --- a/paramiko/win_pageant.py +++ b/paramiko/win_pageant.py @@ -21,8 +21,6 @@ Functions for communicating with Pageant, the basic windows ssh agent program. """ -from __future__ import with_statement - import struct import threading import array diff --git a/tests/test_sftp.py b/tests/test_sftp.py index 96315c6..f78047b 100755 --- a/tests/test_sftp.py +++ b/tests/test_sftp.py @@ -23,8 +23,6 @@ a real actual sftp server is contacted, and a new folder is created there to do test file operations in (so no existing files will be harmed). """ -from __future__ import with_statement - from binascii import hexlify import os import warnings