Changeset 2034

Show
Ignore:
Timestamp:
10/23/07 03:10:04 (15 months ago)
Author:
markybob
Message:

remove unnecessary eval

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • tags/deluge-0.5.5.95/src/interface.py

    r2033 r2034  
    14931493        for columns in to_save: 
    14941494            pref_name = columns + '_width' 
    1495             self.config.set(pref_name, eval('self.' + columns +  
    1496                 '_column.get_width()')) 
     1495            column = getattr(self, columns + '_column')  
     1496            self.config.set(pref_name, column.get_width()) 
    14971497    
    14981498    # Saves the tabs order (except the 'Details' tab) 
  • trunk/src/interface.py

    r2033 r2034  
    14931493        for columns in to_save: 
    14941494            pref_name = columns + '_width' 
    1495             self.config.set(pref_name, eval('self.' + columns +  
    1496                 '_column.get_width()')) 
     1495            column = getattr(self, columns + '_column')  
     1496            self.config.set(pref_name, column.get_width()) 
    14971497    
    14981498    # Saves the tabs order (except the 'Details' tab)