import/export: workaround for issue where flake8(?) reads '\t' as
'\'+'t' when parsing an option value
This commit is contained in:
1 parent
ecc4c2c78b
commit
7c02782e3c
1 file changed
+5
-2
@@ -386,10 +386,13 @@ def open_uri(uri,
|
|||||||
raise MalformedURIException('Malformed header argument in URI')
|
raise MalformedURIException('Malformed header argument in URI')
|
||||||
|
|
||||||
if b"sep" in qualifiers:
|
if b"sep" in qualifiers:
|
||||||
sep=tobytes(qualifiers[b"sep"][0][0])
|
sep = tobytes(qualifiers[b"sep"][0][0])
|
||||||
else:
|
else:
|
||||||
try:
|
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:
|
except KeyError:
|
||||||
sep=None
|
sep=None
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user