2
0
Эх сурвалжийг харах

remove name and value from builtins

Darren Ranalli 18 жил өмнө
parent
commit
fcee0e315f

+ 1 - 0
direct/src/distributed/MsgTypes.py

@@ -93,6 +93,7 @@ MsgId2Names = invertDictLossless(MsgName2Id)
 # put msg names in module scope, assigned to msg value
 # put msg names in module scope, assigned to msg value
 for name, value in MsgName2Id.items():
 for name, value in MsgName2Id.items():
     exec '%s = %s' % (name, value)
     exec '%s = %s' % (name, value)
+del name, value
 
 
 # These messages are ignored when the client is headed to the quiet zone
 # These messages are ignored when the client is headed to the quiet zone
 QUIET_ZONE_IGNORED_LIST = [
 QUIET_ZONE_IGNORED_LIST = [