# HG changeset patch # User Olivier Giorgis # Date 1531906025 -7200 # Node ID 57e06dd166d455af0afd84a3e6dbc779cca39998 # Parent b22d1d9316e49f23cbe1c4d73f5044add2bd6bce [py3] Replace unicode keyword which is unknown in python3 diff -r b22d1d9316e4 -r 57e06dd166d4 cubicweb/_exceptions.py --- a/cubicweb/_exceptions.py Thu Jun 28 18:19:08 2018 +0200 +++ b/cubicweb/_exceptions.py Wed Jul 18 11:27:05 2018 +0200 @@ -98,7 +98,7 @@ def rtypes(self): if 'rtypes' in self.kwargs: return self.kwargs['rtypes'] - cstrname = unicode(self.kwargs['cstrname']) + cstrname = text_type(self.kwargs['cstrname']) cstr = self.session.find('CWUniqueTogetherConstraint', name=cstrname).one() return sorted(rtype.name for rtype in cstr.relations)