]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Use a more pythonic string construction
authorKevin Benton <blak111@gmail.com>
Mon, 2 Nov 2015 08:48:22 +0000 (01:48 -0700)
committerKevin Benton <blak111@gmail.com>
Mon, 2 Nov 2015 08:50:36 +0000 (01:50 -0700)
Use interpolation rather than concatenation of literals and variables.

Change-Id: I1762534586751aa29174afcd67823468abcde123

neutron/agent/linux/dhcp.py

index 1ab813f66c400798586a22aabadb1a8d9b3b56b6..e44a4dec5d7956d6796452670374317ba9a73867 100644 (file)
@@ -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):