Commit 1fb845ad authored by Vincent Pelletier's avatar Vincent Pelletier

It is not allowed, per coding style rules, to start a local variable name with...

It is not allowed, per coding style rules, to start a local variable name with an underscore. Found by pylint.
Fixes a bug introduced in r958 (variable renaming forgotten on "if" line).


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@966 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 64215aef
......@@ -494,11 +494,11 @@ def _checkNodeState(state):
raise PacketMalformedError('invalid node state %d' % state)
return node_state
def _checkNodeType(node_type):
_node_type = node_types.get(node_type)
def _checkNodeType(original_node_type):
node_type = node_types.get(node_type)
if node_type is None:
raise PacketMalformedError('invalid node type %d' % node_type)
return _node_type
raise PacketMalformedError('invalid node type %d' % original_node_type)
return node_type
def _checkAddress(address):
if address == '\0' * 6:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment