Simplify expression.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 15 Sep 2016 15:42:52 +0300
changeset 553 45a3138c9b4d
parent 552 7398bc1829d6
child 554 59714b9033bc
Simplify expression.
py/gadict.py
--- a/py/gadict.py	Tue Sep 13 17:41:14 2016 +0300
+++ b/py/gadict.py	Thu Sep 15 15:42:52 2016 +0300
@@ -37,9 +37,8 @@
         if not pos:
             raise ParseException("Part of speech expected...\n")
         self.pos = pos
-        if tr_list:
-            self.tr_list = tr_list
-        else:
+        self.tr_list = tr_list
+        if not tr_list:
             self.tr_list = []
         self.ex_list = ex_list
         self.syn_list = syn_list