From 3afc76a6b4c4b06193cdb4837ca1df1f3428fb20 Mon Sep 17 00:00:00 2001 From: Scott Maxwell Date: Wed, 30 Oct 2013 16:10:17 -0700 Subject: [PATCH] Write to locals instead of globals --- paramiko/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paramiko/common.py b/paramiko/common.py index 013510e..2392f03 100644 --- a/paramiko/common.py +++ b/paramiko/common.py @@ -34,9 +34,9 @@ MSG_CHANNEL_OPEN, MSG_CHANNEL_OPEN_SUCCESS, MSG_CHANNEL_OPEN_FAILURE, \ MSG_CHANNEL_EOF, MSG_CHANNEL_CLOSE, MSG_CHANNEL_REQUEST, \ MSG_CHANNEL_SUCCESS, MSG_CHANNEL_FAILURE = range(90, 101) -for key in list(globals().keys()): +for key in list(locals().keys()): if key.startswith('MSG_'): - globals()['c' + key] = byte_chr(globals()[key]) + locals()['c' + key] = byte_chr(locals()[key]) del key # for debugging: