Changeset 188 for etherws/trunk


Ignore:
Timestamp:
07/30/12 19:37:12 (12 years ago)
Author:
atzm
Message:
  • refactoring
File:
1 edited

Legend:

Unmodified
Added
Removed
  • etherws/trunk/etherws.py

    r187 r188  
    530530 
    531531    def handle_listPort(self, params): 
    532         list_ = [] 
    533         for port in self._switch.portlist: 
    534             list_.append(self._portstat(port)) 
     532        list_ = [self._portstat(p) for p in self._switch.portlist] 
    535533        return {'portlist': list_} 
    536534 
Note: See TracChangeset for help on using the changeset viewer.