From 07a8db37f91f47233e4f51c706e1128cc6c15cf5 Mon Sep 17 00:00:00 2001 From: roopa Date: Wed, 23 Apr 2014 14:36:47 -0700 Subject: [PATCH] Fix ifupdown2 dpkg-configure error during build Ticket: Reviewed By: sergey Testing Done: dpkg-configure during build seems to be picking up python2.6 and python2.6 was complaining about the syntax. Fixed with syntax compatible with python2.6 --- pkg/iface.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/iface.py b/pkg/iface.py index 5ce4d7f..6f5fd78 100644 --- a/pkg/iface.py +++ b/pkg/iface.py @@ -128,8 +128,7 @@ class ifaceJsonEncoder(json.JSONEncoder): def default(self, o): retconfig = {} if o.config: - retconfig = {k: (v[0] if len(v) == 1 else v) - for k,v in o.config.items()} + retconfig = dict((k, (v[0] if len(v) == 1 else v)) for k,v in o.config.items()) return OrderedDict({'name' : o.name, 'addr_method' : o.addr_method, 'addr_family' : o.addr_family,