equal
deleted
inserted
replaced
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"^# ") |