py/gadict.py
changeset 568 4b610eaaf4be
parent 566 0bba61492c37
child 569 5709d5bd349b
equal deleted inserted replaced
567:2f71930c4bae 568:4b610eaaf4be
   100 
   100 
   101     def __str__(self):
   101     def __str__(self):
   102         if tr_list:
   102         if tr_list:
   103             (lang, text) = self.tr_list[0]
   103             (lang, text) = self.tr_list[0]
   104             return "{}: {}".format(lang, text)
   104             return "{}: {}".format(lang, text)
   105         return "<empy sence>"
   105         return "<empy sense>"
   106     def __repr__(self):
   106     def __repr__(self):
   107         return "<Sence {}>".format(str(self))
   107         return "<Sense {}>".format(str(self))
   108 
   108 
   109 class Parser:
   109 class Parser:
   110     """gadict dictionary format parser."""
   110     """gadict dictionary format parser."""
   111 
   111 
   112     COMMENT_RE = regex.compile(r"^# ")
   112     COMMENT_RE = regex.compile(r"^# ")