From f52b07b86947e8c96c09d48ad318cd44d0918eb7 Mon Sep 17 00:00:00 2001 From: Phyks Date: Wed, 14 Jun 2017 10:48:17 +0200 Subject: [PATCH] No need for unicode Missed it while reviewing !2, but as we use `from builtins import str`, there is no need to use `unicode`. --- flatisfy/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flatisfy/config.py b/flatisfy/config.py index c51c61f..090b735 100644 --- a/flatisfy/config.py +++ b/flatisfy/config.py @@ -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"]