No need for unicode
Missed it while reviewing !2, but as we use `from builtins import str`, there is no need to use `unicode`.
This commit is contained in:
parent
bd1e1d2068
commit
f52b07b869
@ -95,7 +95,7 @@ def validate_config(config):
|
|||||||
# message in the log output.
|
# message in the log output.
|
||||||
# pylint: disable=locally-disabled,line-too-long
|
# pylint: disable=locally-disabled,line-too-long
|
||||||
assert "type" in config["constraints"]
|
assert "type" in config["constraints"]
|
||||||
assert isinstance(config["constraints"]["type"], (str, unicode))
|
assert isinstance(config["constraints"]["type"], str)
|
||||||
assert config["constraints"]["type"].upper() in ["RENT",
|
assert config["constraints"]["type"].upper() in ["RENT",
|
||||||
"SALE", "SHARING"]
|
"SALE", "SHARING"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user