import/export: workaround for issue where flake8(?) reads '\t' as
'\'+'t' when parsing an option value
This commit is contained in:
@ -389,7 +389,10 @@ def open_uri(uri,
|
||||
sep = tobytes(qualifiers[b"sep"][0][0])
|
||||
else:
|
||||
try:
|
||||
sep=tobytes(config["obi"]["sep"])
|
||||
sep = config["obi"]["sep"]
|
||||
if sep == '\\t': # dirty workaround for flake8(?) issue that reads '\t' as '\'+'t' when parsing the option value
|
||||
sep = '\t'
|
||||
sep = tobytes(sep)
|
||||
except KeyError:
|
||||
sep=None
|
||||
|
||||
|
Reference in New Issue
Block a user