Files
t0txt/clean.py
T
2020-05-03 23:30:22 +00:00

22 lines
323 B
Python

import shelve
db = shelve.open('t0txt')
new = shelve.open('new')
for k in db.keys():
try:
note = db[k]
except:
print('error', k)
continue
if not note and not isinstance(note, str):
print('bad', k)
continue
if k == 'HVQH':
continue
new[k] = note