From 10578dbf7e8262c4e695aa45f9259de4e79a6c45 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sat, 3 Oct 2009 20:42:12 +0200 Subject: [PATCH] [entropy.services] remove unicodism --- libraries/entropy/services/auth_interfaces.py | 2 +- libraries/entropy/services/interfaces.py | 24 ++--- libraries/entropy/services/system/commands.py | 90 +++++++++---------- .../entropy/services/system/executors.py | 18 ++-- .../entropy/services/system/interfaces.py | 2 +- 5 files changed, 68 insertions(+), 68 deletions(-) diff --git a/libraries/entropy/services/auth_interfaces.py b/libraries/entropy/services/auth_interfaces.py index ce01a003b..081484784 100644 --- a/libraries/entropy/services/auth_interfaces.py +++ b/libraries/entropy/services/auth_interfaces.py @@ -568,7 +568,7 @@ class phpBB3Auth(Authenticator,RemoteDatabase): self.cursor.execute(sql) return True, None except Exception as e: - return False, unicode(e) + return False, str(e) def _set_config_value(self, config_name, data): diff --git a/libraries/entropy/services/interfaces.py b/libraries/entropy/services/interfaces.py index 872cb2c82..ebe28cfdb 100644 --- a/libraries/entropy/services/interfaces.py +++ b/libraries/entropy/services/interfaces.py @@ -1033,7 +1033,7 @@ class SocketHost: # needs auth = True 'desc': "instantiate a session", # description 'syntax': "begin", # syntax - 'from': unicode(self), # from what class + 'from': str(self), # from what class }, 'end': { 'auth': False, @@ -1043,7 +1043,7 @@ class SocketHost: 'as_user': False, 'desc': "end a session", 'syntax': " end", - 'from': unicode(self), + 'from': str(self), }, 'session_config': { 'auth': False, @@ -1053,7 +1053,7 @@ class SocketHost: 'as_user': False, 'desc': "set session configuration options", 'syntax': " session_config