Browse Source

[2225_statistics] remove an unnecessary formating

Due to the review comment.
Naoki Kambe 12 years ago
parent
commit
6fe2c80c65
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/lib/python/isc/statistics/counter.py

+ 1 - 2
src/lib/python/isc/statistics/counter.py

@@ -84,8 +84,7 @@ def _add_counter(element, spec, identifier):
     # check whether spec and identifier are correct
     # check whether spec and identifier are correct
     isc.config.find_spec_part(spec, identifier)
     isc.config.find_spec_part(spec, identifier)
     # examine spec of the top-level item first
     # 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 \
     if spec_['item_type'] == 'named_set' and \
             spec_['named_set_item_spec']['item_type'] ==  'map':
             spec_['named_set_item_spec']['item_type'] ==  'map':
         map_spec = spec_['named_set_item_spec']['map_item_spec']
         map_spec = spec_['named_set_item_spec']['map_item_spec']