From 8f887a2037deafe0ec49a3ede36a62d1978013d8 Mon Sep 17 00:00:00 2001 From: Bayarkhuu Bataa Date: Wed, 24 Jul 2019 16:10:06 +0800 Subject: [PATCH] Fix unicode error of device user's non-english name. --- zk/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zk/user.py b/zk/user.py index 10a6bfe..5598ea2 100644 --- a/zk/user.py +++ b/zk/user.py @@ -34,7 +34,7 @@ class User(object): return pack(": [uid:{}, name:{} user_id:{}]'.format(self.uid, self.name, self.user_id) + return u': [uid:{}, name:{} user_id:{}]'.format(self.uid, self.name, self.user_id) def __repr__(self): - return ': [uid:{}, name:{} user_id:{}]'.format(self.uid, self.name, self.user_id) + return u': [uid:{}, name:{} user_id:{}]'.format(self.uid, self.name, self.user_id)