From 931ace337fca08fe9db12312bf0ea010eec5585d Mon Sep 17 00:00:00 2001 From: Poruri Sai Rahul Date: Wed, 25 Aug 2021 12:35:44 +0000 Subject: [PATCH] CLN : Remove unnecessary if/else code branch This commit removes an unnecessary if/elif/else code branch that became redundant when we removed the use of six and Unicode trait type from the codebase --- apptools/preferences/preference_binding.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apptools/preferences/preference_binding.py b/apptools/preferences/preference_binding.py index dacaffae..0bb68981 100644 --- a/apptools/preferences/preference_binding.py +++ b/apptools/preferences/preference_binding.py @@ -101,10 +101,6 @@ def _get_value(self, trait_name, value): if type(handler) is Str: pass - # If the trait type is 'Str' then we convert the raw value. - elif type(handler) is Str: - value = str(value) - # Otherwise, we eval it! else: try: