projects
/
gonvert
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
baa96af
)
Superfluous check removed
author
Ed Page
<eopage@byu.net>
Sat, 31 Oct 2009 02:31:45 +0000
(21:31 -0500)
committer
Ed Page
<eopage@byu.net>
Sat, 31 Oct 2009 02:31:45 +0000
(21:31 -0500)
src/gonvert_glade.py
patch
|
blob
|
history
diff --git
a/src/gonvert_glade.py
b/src/gonvert_glade.py
index
a314c32
..
dd38d9a
100755
(executable)
--- 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))
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, )))
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))
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("")
except Exception:
_moduleLogger.exception("")