aboutsummaryrefslogtreecommitdiff
path: root/checklines.py3
diff options
context:
space:
mode:
Diffstat (limited to 'checklines.py3')
-rwxr-xr-xchecklines.py35
1 files changed, 5 insertions, 0 deletions
diff --git a/checklines.py3 b/checklines.py3
index e38bba1..33258b1 100755
--- a/checklines.py3
+++ b/checklines.py3
@@ -28,5 +28,10 @@ for line in sys.stdin:
print("\tLine's number: {0:X}".format(x))
print("\tChar gives number: {0:X}".format(ord(char)))
print("\tNumber gives character: {0} ({1})".format(c, name(c)))
+ elif comments[1]!='#' and comments[1:].strip() != name(char):
+ # Only report name issues if other stuff is okay.
+ print(line)
+ print("\tLine's char, name: {0} ({1})".format(char, comments[1:].strip()))
+ print("\tCorrect name: "+name(char))
except Exception as e:
print("{0}\n\t{1}".format(line, e))