Browse Source

[trac547] removed unnecessary code sorting addresses and ports

Naoki Kambe 14 years ago
parent
commit
b751b7e0cc
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/bin/stats/stats_httpd.py.in

+ 2 - 4
src/bin/stats/stats_httpd.py.in

@@ -195,10 +195,8 @@ class StatsHttpd:
                         for itm in self.mccs.get_module_spec().get_config_spec()
                         ])
                 )
-        # remove duplicated element
-        self.http_addrs = list(
-            set([ (cf['address'], cf['port']) for cf in self.config['listen_on'] ])
-                )
+        # set addresses and ports for HTTP
+        self.http_addrs = [ (cf['address'], cf['port']) for cf in self.config['listen_on'] ]
 
     def open_httpd(self):
         """Opens sockets for HTTP. Iterating each HTTP address to be