f
This commit is contained in:
11
scripts/indent_check.py
Normal file
11
scripts/indent_check.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import pathlib
|
||||
p = pathlib.Path('Store/registry.py')
|
||||
with p.open('r', encoding='utf-8') as f:
|
||||
lines = f.readlines()
|
||||
for i in range(312, 328):
|
||||
if i-1 < len(lines):
|
||||
line = lines[i-1]
|
||||
leading = line[:len(line)-len(line.lstrip('\t '))]
|
||||
print(f"{i}: {repr(line.rstrip())} | leading={repr(leading)} len={len(leading)} chars={[ord(c) for c in leading]}")
|
||||
else:
|
||||
print(f"{i}: <EOF>")
|
||||
Reference in New Issue
Block a user