summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-12 06:43:59 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 06:43:11 (GMT)
commitf18b43cce5dd1be908046065a7936517bbe33634 (patch)
treeb6ca33ffe3f801d551abf69e5f728fa2785e0c20
parent1503b5dcc0621ed523d5c89f0773afeb3f52b931 (diff)
client: nativeString for logging was wrong
-rw-r--r--src/client.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/client.py b/src/client.py
index fd8b74a..10ba2cc 100644
--- a/src/client.py
+++ b/src/client.py
@@ -28,7 +28,7 @@ from util import Duration
from log import logDebug, logException, logWarning, m18nc
from message import Message
from common import Internal, Debug, Options, StrMixin
-from common import unicodeString, nativeString
+from common import unicodeString, unicode
from rule import Ruleset
from game import PlayingGame
from query import Query
@@ -186,13 +186,11 @@ class Client(pb.Referenceable):
def remote_newTables(self, tables):
"""update table list"""
- newTables = list(ClientTable(self, *x)
- for x in tables)
+ newTables = list(ClientTable(self, *x) for x in tables)
self.tables.extend(newTables)
if Debug.table:
- logDebug(
- u'%s got new tables:%s' %
- (nativeString(self.name), newTables))
+ _ = u', '.join(unicode(ClientTable(self, *x)) for x in tables)
+ logDebug(u'%s got new tables:%s' % (self.name, _))
@staticmethod
def remote_serverRulesets(hashes):