import2ledger/tests/__init__.py
Brett Smith 5c73c40bcc import2ledger: First version.
This is a pretty feature-complete version 1.
I don't know why I waited this long to commit anything.
2017-10-22 13:40:20 -04:00

7 lines
150 B
Python

import pathlib
import re
DATA_DIR = pathlib.Path(__file__).with_name('data')
def normalize_whitespace(s):
return re.sub(r'(\t| {3,})', ' ', s)