We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
replace_tab_with_spaces
1 parent f64d740 commit 757a86dCopy full SHA for 757a86d
src/attributecode/transform.py
@@ -28,6 +28,7 @@
28
from attributecode import saneyaml
29
from attributecode.util import csv
30
from attributecode.util import python2
31
+from attributecode.util import replace_tab_with_spaces
32
33
34
if python2: # pragma: nocover
@@ -182,7 +183,7 @@ def from_file(cls, location):
182
183
`location`.
184
"""
185
with io.open(location, encoding='utf-8') as conf:
- data = saneyaml.load(conf.read())
186
+ data = saneyaml.load(replace_tab_with_spaces(conf.read()))
187
return cls(
188
column_renamings=data.get('column_renamings', {}),
189
required_columns=data.get('required_columns', []),
0 commit comments