Commit 5111e926 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Encode packet even if there is no positional but named parameters.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1393 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 50a2dc98
......@@ -216,7 +216,7 @@ class Packet(object):
def __init__(self, *args, **kw):
assert self._code is not None, "Packet class not registered"
if args != ():
if args != () or kw != {}:
body = self._encode(*args, **kw)
else:
body = ''
......
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