Removed test.py, updated .gitignore to ignore test.py

This commit is contained in:
Trey Blancher 2021-08-26 17:46:26 -04:00
parent ac2a397c19
commit 980d90718f
2 changed files with 2 additions and 20 deletions

3
.gitignore vendored
View File

@ -4,7 +4,8 @@
*.tar *.tar
*.pyc *.pyc
*.sw* *.sw*
test.* test.sh
test.py
work work
timetracker.py-pre-incident-fixup timetracker.py-pre-incident-fixup
do_process.bak2017-11-06_file-test do_process.bak2017-11-06_file-test

19
test.py
View File

@ -1,19 +0,0 @@
#!/usr/bin/python
import fileinput
import math
import re
import sys
import time
empty = re.compile("^\s*$")
delim = re.compile(":\s{2}")
stripped = {}
for line in fileinput.input():
if empty.match(line):
continue
print line
stripped = delim.split(line.strip())
print len(stripped)