Skip to content
Snippets Groups Projects
Commit cff0240f authored by jkerdreu's avatar jkerdreu
Browse files

Add pprint

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2767 b32b6428-25c9-4566-ad07-03861ab6144f
parent 1cb20fe5
Branches
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@ from . import cbor
from enum import Enum
from tabulate import tabulate
import pprint
import datetime
import pysodium
import struct
......@@ -255,6 +256,7 @@ class Message(object):
tmp=""
for k,v in self.body.items():
k = k+':'
v=pprint.pformat(v,width=55)
tmp=tmp+"- %-12s %s\n" % (k,v)
#tmp = tmp.strip()
r.append(["body", tmp])
......@@ -285,7 +287,7 @@ class Message(object):
def is_request_isalive(self):
if self.is_request() and self.action == 'is_alive':
return True
return True
return False
def is_attributes_change(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment