2017-12-31 15:06:57 +00:00
|
|
|
import decimal
|
2017-10-22 17:38:53 +00:00
|
|
|
import pathlib
|
|
|
|
import re
|
|
|
|
|
2017-12-31 15:06:57 +00:00
|
|
|
from import2ledger import __main__ as i2lmain
|
|
|
|
|
|
|
|
decimal.setcontext(i2lmain.decimal_context())
|
|
|
|
|
2017-10-22 17:38:53 +00:00
|
|
|
DATA_DIR = pathlib.Path(__file__).with_name('data')
|
|
|
|
|
|
|
|
def normalize_whitespace(s):
|
|
|
|
return re.sub(r'(\t| {3,})', ' ', s)
|