You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ch...@apache.org on 2018/06/07 14:28:26 UTC

qpid-dispatch git commit: NO-JIRA: fix python compat regression

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 068d4980f -> 1c8f7d9af


NO-JIRA: fix python compat regression


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/1c8f7d9a
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/1c8f7d9a
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/1c8f7d9a

Branch: refs/heads/master
Commit: 1c8f7d9af5cfd52d6532c0a52e90417c131058ec
Parents: 068d498
Author: Chuck Rolke <cr...@redhat.com>
Authored: Thu Jun 7 10:27:48 2018 -0400
Committer: Chuck Rolke <cr...@redhat.com>
Committed: Thu Jun 7 10:27:48 2018 -0400

----------------------------------------------------------------------
 python/qpid_dispatch_internal/policy/policy_local.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/1c8f7d9a/python/qpid_dispatch_internal/policy/policy_local.py
----------------------------------------------------------------------
diff --git a/python/qpid_dispatch_internal/policy/policy_local.py b/python/qpid_dispatch_internal/policy/policy_local.py
index 10bd6c4..87f802b 100644
--- a/python/qpid_dispatch_internal/policy/policy_local.py
+++ b/python/qpid_dispatch_internal/policy/policy_local.py
@@ -280,7 +280,7 @@ class PolicyCompiler(object):
                          PolicyKeys.KW_ALLOW_DYNAMIC_SRC,
                          PolicyKeys.KW_ALLOW_USERID_PROXY
                          ]:
-                if type(val) in [unicode, str] and val.lower() in ['true', 'false']:
+                if isinstance(val, (PY_STRING_TYPE, PY_TEXT_TYPE)) and val.lower() in ['true', 'false']:
                     val = True if val == 'true' else False
                 if not type(val) is bool:
                     errors.append("Policy vhost '%s' user group '%s' option '%s' has illegal boolean value '%s'." %


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org