Write to locals instead of globals

This commit is contained in:
Scott Maxwell 2013-10-30 16:10:17 -07:00
parent 3301473ae7
commit 3afc76a6b4
1 changed files with 2 additions and 2 deletions

View File

@ -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_EOF, MSG_CHANNEL_CLOSE, MSG_CHANNEL_REQUEST, \
MSG_CHANNEL_SUCCESS, MSG_CHANNEL_FAILURE = range(90, 101) 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_'): if key.startswith('MSG_'):
globals()['c' + key] = byte_chr(globals()[key]) locals()['c' + key] = byte_chr(locals()[key])
del key del key
# for debugging: # for debugging: