12 lines
		
	
	
	
		
			259 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			259 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import decimal
 | 
						|
import pathlib
 | 
						|
import re
 | 
						|
 | 
						|
from import2ledger import __main__ as i2lmain
 | 
						|
 | 
						|
decimal.setcontext(i2lmain.decimal_context())
 | 
						|
 | 
						|
DATA_DIR = pathlib.Path(__file__).with_name('data')
 | 
						|
 | 
						|
def normalize_whitespace(s):
 | 
						|
    return re.sub(r'(\t| {3,})', '  ', s)
 |