remove unnecessary eval

This commit is contained in:
Marcos Pinto 2007-10-23 03:10:04 +00:00
parent 7d680bdd3a
commit 3eacd3e2d6
1 changed files with 2 additions and 2 deletions

View File

@ -1492,8 +1492,8 @@ want to remove all seeding torrents?")):
"ul", "eta", "availability", "share"]
for columns in to_save:
pref_name = columns + '_width'
self.config.set(pref_name, eval('self.' + columns +
'_column.get_width()'))
column = getattr(self, columns + '_column')
self.config.set(pref_name, column.get_width())
# Saves the tabs order (except the 'Details' tab)
def save_tabs_order(self):