Skip to content

Commit 757a86d

Browse files
thomathoma
authored andcommitted
Add replace_tab_with_spaces before running the saneyaml
1 parent f64d740 commit 757a86d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/attributecode/transform.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
from attributecode import saneyaml
2929
from attributecode.util import csv
3030
from attributecode.util import python2
31+
from attributecode.util import replace_tab_with_spaces
3132

3233

3334
if python2: # pragma: nocover
@@ -182,7 +183,7 @@ def from_file(cls, location):
182183
`location`.
183184
"""
184185
with io.open(location, encoding='utf-8') as conf:
185-
data = saneyaml.load(conf.read())
186+
data = saneyaml.load(replace_tab_with_spaces(conf.read()))
186187
return cls(
187188
column_renamings=data.get('column_renamings', {}),
188189
required_columns=data.get('required_columns', []),

0 commit comments

Comments
 (0)