From 1de407f0af6d03584c8f2d93a81545d33fcc78af Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 30 Oct 2009 21:31:45 -0500 Subject: [PATCH] Superfluous check removed --- src/gonvert_glade.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gonvert_glade.py b/src/gonvert_glade.py index a314c32..dd38d9a 100755 --- a/src/gonvert_glade.py +++ b/src/gonvert_glade.py @@ -606,7 +606,6 @@ class Gonvert(object): func, arg = self._unitDataInCategory[row[0]][0] row[1] = str(func.from_base(base, arg)) - # if the second row has a unit then update its value if self._previousUnitName.get_text() != '': func, arg = self._unitDataInCategory[self._previousUnitName.get_text()][0] self._previousUnitValue.set_text(str(func.from_base(base, arg, ))) @@ -631,10 +630,8 @@ class Gonvert(object): func, arg = self._unitDataInCategory[row[0]][0] row[1] = str(func.from_base(base, arg)) - # if the second row has a unit then update its value - if self._unitName.get_text() != '': - func, arg = self._unitDataInCategory[self._unitName.get_text()][0] - self._unitValue.set_text(str(func.from_base(base, arg, ))) + func, arg = self._unitDataInCategory[self._unitName.get_text()][0] + self._unitValue.set_text(str(func.from_base(base, arg, ))) except Exception: _moduleLogger.exception("") -- 1.7.9.5