From 8cdb99009fe84a93c79ef3107318b0d6614cd245 Mon Sep 17 00:00:00 2001 From: Philip Bauer Date: Fri, 18 May 2018 07:59:50 +0200 Subject: [PATCH] user properties are text in py3 --- src/Products/PlonePAS/plugins/ufactory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Products/PlonePAS/plugins/ufactory.py b/src/Products/PlonePAS/plugins/ufactory.py index 6663650b..8edeabea 100644 --- a/src/Products/PlonePAS/plugins/ufactory.py +++ b/src/Products/PlonePAS/plugins/ufactory.py @@ -227,7 +227,7 @@ def getProperty(self, id, default=_marker): for sheet in self.getOrderedPropertySheets(): if sheet.hasProperty(id): value = sheet.getProperty(id) - if isinstance(value, six.text_type): + if six.PY2 and isinstance(value, six.text_type): # XXX Temporarily work around the fact that # property sheets blindly store and return # unicode. This is sub-optimal and should be