# HG changeset patch # User Julien Cristau # Date 1443693460 -7200 # Node ID c69f109293f2b299c18c0d87b233e2e5c5d90c8e # Parent 9ffdfa1d28f57c5a6dd09315e5f942f672a5aacf [server/session] unicode → six.text_type diff -r 9ffdfa1d28f5 -r c69f109293f2 server/session.py --- a/server/session.py Thu Oct 01 11:57:22 2015 +0200 +++ b/server/session.py Thu Oct 01 11:57:40 2015 +0200 @@ -27,6 +27,8 @@ import functools from contextlib import contextmanager +from six import text_type + from logilab.common.deprecation import deprecated from logilab.common.textutils import unormalize from logilab.common.registry import objectify_predicate @@ -771,7 +773,7 @@ def transaction_uuid(self, set=True): uuid = self.transaction_data.get('tx_uuid') if set and uuid is None: - self.transaction_data['tx_uuid'] = uuid = unicode(uuid4().hex) + self.transaction_data['tx_uuid'] = uuid = text_type(uuid4().hex) self.repo.system_source.start_undoable_transaction(self, uuid) return uuid