diff options
author | Mark E. Shoulson <mark@kli.org> | 2020-06-01 12:57:29 -0400 |
---|---|---|
committer | Mark E. Shoulson <mark@kli.org> | 2021-07-20 15:13:38 -0400 |
commit | cccfd0dd236586e9ad1f28b62dde6e417cb9bc69 (patch) | |
tree | a3350ac170c7f7ce41d4777747e118e83317d9ce /checklines.py3 | |
parent | Merge branch 'master' (diff) | |
parent | A bunch more emoji, including some new ones. (diff) | |
download | dotXCompose-cccfd0dd236586e9ad1f28b62dde6e417cb9bc69.tar.gz dotXCompose-cccfd0dd236586e9ad1f28b62dde6e417cb9bc69.tar.bz2 dotXCompose-cccfd0dd236586e9ad1f28b62dde6e417cb9bc69.zip |
Merge branch 'master'
Diffstat (limited to 'checklines.py3')
-rwxr-xr-x | checklines.py3 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/checklines.py3 b/checklines.py3 index dcc88e9..4551f0d 100755 --- a/checklines.py3 +++ b/checklines.py3 @@ -6,10 +6,12 @@ from unicodedata import name import re import sys +linecount = 0 for line in sys.stdin: line=line.strip() if not line or line[0]=="#": continue + linecount += 1 match=re.match(r'\s*(.*):\s*"(.*?)"\s*(\S*)\s*(#.*)?', line) if not match: print("({0})".format(line)) @@ -32,3 +34,5 @@ for line in sys.stdin: print("\tNumber gives character: {0} ({1})".format(c, name(c))) except Exception as e: print("{0}\n\t{1}".format(line, e)) + +print("Done. Checked %d lines."%linecount) |