summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcos Pinto <markybob@dipconsultants.com>2007-10-23 03:10:04 +0000
committerMarcos Pinto <markybob@dipconsultants.com>2007-10-23 03:10:04 +0000
commit3eacd3e2d6af1ec15a65b2a8f3c09239b2de38b1 (patch)
treea7608e4525d5b64cdf304a55e4b42dac796944f5
parent7d680bdd3a97e79844717d3e45191aa0fac393b7 (diff)
downloaddeluge-3eacd3e2d6af1ec15a65b2a8f3c09239b2de38b1.tar.gz
deluge-3eacd3e2d6af1ec15a65b2a8f3c09239b2de38b1.tar.bz2
deluge-3eacd3e2d6af1ec15a65b2a8f3c09239b2de38b1.zip
remove unnecessary eval
-rw-r--r--src/interface.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interface.py b/src/interface.py
index a8eb5ad6e..247a69a7a 100644
--- a/src/interface.py
+++ b/src/interface.py
@@ -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):