summaryrefslogtreecommitdiff
path: root/paramiko/common.py
diff options
context:
space:
mode:
authorScott Maxwell <scott@codecobblers.com>2013-10-30 16:10:17 -0700
committerScott Maxwell <scott@codecobblers.com>2013-10-30 16:10:17 -0700
commit3afc76a6b4c4b06193cdb4837ca1df1f3428fb20 (patch)
tree2be1640fd9dc6b49026561ad9eb7071b3dc47183 /paramiko/common.py
parent3301473ae7122a4728131eb5ced90dc565e53783 (diff)
downloadparamiko-3afc76a6b4c4b06193cdb4837ca1df1f3428fb20.tar.gz
Write to locals instead of globals
Diffstat (limited to 'paramiko/common.py')
-rw-r--r--paramiko/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/common.py b/paramiko/common.py
index 013510e5..2392f037 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: