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:
Lucas Verney 2017-06-14 10:48:17 +02:00
parent bd1e1d2068
commit f52b07b869

View File

@ -95,7 +95,7 @@ def validate_config(config):
# message in the log output.
# pylint: disable=locally-disabled,line-too-long
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",
"SALE", "SHARING"]