# HG changeset patch # User Oleksandr Gavenko # Date 1489911403 -7200 # Node ID 7aa283584ee659ea32064d66c86cf10b85030b30 # Parent 13f5485d81c66466fdb32d13143c75b03d8d9a73 Skip tabs for proper statistic calculation. diff -r 13f5485d81c6 -r 7aa283584ee6 py/gadict_freq.py --- a/py/gadict_freq.py Fri Mar 17 21:10:43 2017 +0200 +++ b/py/gadict_freq.py Sun Mar 19 10:16:43 2017 +0200 @@ -40,8 +40,9 @@ if not m: raise Exception("Line {:d}: '{:s}' wrong format\n".format(self.lineno, line)) tab = m.group(1) - if not tab: - self.cnt += 1 + if tab: + continue + self.cnt += 1 if self.limit and self.cnt > self.limit: break headword = m.group(2).strip().lower()