From 857a14f71491c8cd608c9eca135c737cbc8253a3 Mon Sep 17 00:00:00 2001 From: Kevin Benton Date: Mon, 2 Nov 2015 01:48:22 -0700 Subject: [PATCH] Use a more pythonic string construction Use interpolation rather than concatenation of literals and variables. Change-Id: I1762534586751aa29174afcd67823468abcde123 --- neutron/agent/linux/dhcp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/agent/linux/dhcp.py b/neutron/agent/linux/dhcp.py index 1ab813f66..e44a4dec5 100644 --- a/neutron/agent/linux/dhcp.py +++ b/neutron/agent/linux/dhcp.py @@ -97,7 +97,7 @@ class DictModel(dict): del self[name] def __str__(self): - return ("id=" + self.id + ", network_id=" + self.network_id) + return "id=%s, network_id=%s" % (self.id, self.network_id) class NetModel(DictModel): -- 2.45.2