]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2225_statistics] remove an unnecessary formating
authorNaoki Kambe <kambe@jprs.co.jp>
Fri, 14 Dec 2012 08:15:40 +0000 (17:15 +0900)
committerNaoki Kambe <kambe@jprs.co.jp>
Tue, 8 Jan 2013 04:35:40 +0000 (13:35 +0900)
Due to the review comment.

src/lib/python/isc/statistics/counter.py

index 8a7c4e552d36aa41e40f481b06501b8da622b9de..6ff82fdd86a3cde2b8cf4a7c5578aa50c7b8339d 100644 (file)
@@ -84,8 +84,7 @@ def _add_counter(element, spec, identifier):
     # check whether spec and identifier are correct
     isc.config.find_spec_part(spec, identifier)
     # examine spec of the top-level item first
-    spec_ = isc.config.find_spec_part(
-        spec, '%s' % identifier.split('/')[0])
+    spec_ = isc.config.find_spec_part(spec, identifier.split('/')[0])
     if spec_['item_type'] == 'named_set' and \
             spec_['named_set_item_spec']['item_type'] ==  'map':
         map_spec = spec_['named_set_item_spec']['map_item_spec']