remove unnecessary eval
This commit is contained in:
parent
7d680bdd3a
commit
3eacd3e2d6
|
@ -1492,8 +1492,8 @@ want to remove all seeding torrents?")):
|
||||||
"ul", "eta", "availability", "share"]
|
"ul", "eta", "availability", "share"]
|
||||||
for columns in to_save:
|
for columns in to_save:
|
||||||
pref_name = columns + '_width'
|
pref_name = columns + '_width'
|
||||||
self.config.set(pref_name, eval('self.' + columns +
|
column = getattr(self, columns + '_column')
|
||||||
'_column.get_width()'))
|
self.config.set(pref_name, column.get_width())
|
||||||
|
|
||||||
# Saves the tabs order (except the 'Details' tab)
|
# Saves the tabs order (except the 'Details' tab)
|
||||||
def save_tabs_order(self):
|
def save_tabs_order(self):
|
||||||
|
|
Loading…
Reference in New Issue