From df65e5138275af3c8cb6b631be26977c3501cbf6 Mon Sep 17 00:00:00 2001 From: Karthikeyan Singaravelan Date: Sat, 11 Apr 2020 14:19:36 +0000 Subject: [PATCH] Fix SyntaxWarning over comparison of literals using is --- kappa/restapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kappa/restapi.py b/kappa/restapi.py index fcf1f71..8c46e88 100644 --- a/kappa/restapi.py +++ b/kappa/restapi.py @@ -125,7 +125,7 @@ def create_resource_path(self): LOG.debug('build_path=%s', build_path) full_path = '/'.join(build_path) LOG.debug('full_path=%s', full_path) - if full_path is '': + if full_path == '': parent = resources['/'] else: if full_path not in resources and parent: