X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2Fnepi%2Fresources%2Fns3%2Fns3wrapper_debug.py;fp=src%2Fnepi%2Fresources%2Fns3%2Fns3wrapper_debug.py;h=51f1fc7c70e5c2abe4a4c01948e9f3fe8604b0c5;hb=b4af9a40867beff8660612fe20d3838cb375f159;hp=75df9bc73d7866301c0a2da6aaf6eafe1cd636ae;hpb=b3292d8429f07d0e9d21a3ec2d81dbc4b18332d1;p=nepi.git diff --git a/src/nepi/resources/ns3/ns3wrapper_debug.py b/src/nepi/resources/ns3/ns3wrapper_debug.py index 75df9bc7..51f1fc7c 100644 --- a/src/nepi/resources/ns3/ns3wrapper_debug.py +++ b/src/nepi/resources/ns3/ns3wrapper_debug.py @@ -167,11 +167,10 @@ wrapper = NS3Wrapper() return pprint.pformat(value) def format_args(self, args): - fargs = list(map(self.format_value, args)) - return "[%s]" % ",".join(fargs) + return "[%s]" % ",".join(self.format_value(arg) for arg in args) def format_kwargs(self, kwargs): - fkwargs = ["%s: %s" % (self.format_value(k_w[0]), self.format_value(k_w[1])) for k_w in iter(kwargs.items())] + fkwargs = ["%s: %s" % (self.format_value(k), self.format_value(v)) for (k, v) in kwargs.items()] return "dict({%s})" % ",".join(fkwargs)