summaryrefslogtreecommitdiff
path: root/src/logger.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/logger.py')
-rw-r--r--src/logger.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/logger.py b/src/logger.py
index 1134244f..2070c2a6 100644
--- a/src/logger.py
+++ b/src/logger.py
@@ -1,5 +1,3 @@
-# -*- coding:utf-8 -*-
-#
# Copyright 2010 Le Coz Florent <louizatakk@fedoraproject.org>
#
# This file is part of Poezio.
@@ -69,12 +67,9 @@ class Logger(object):
fd = open(dir+room, 'a')
except IOError:
return
- try:
- msg = msg.encode('utf-8')
- except:
- pass
+ msg = msg
if nick:
- fd.write(datetime.now().strftime('%d-%m-%y [%H:%M:%S] ')+nick.encode('utf-8')+': '+msg+'\n')
+ fd.write(datetime.now().strftime('%d-%m-%y [%H:%M:%S] ')+nick+': '+msg+'\n')
else:
fd.write(datetime.now().strftime('%d-%m-%y [%H:%M:%S] ')+'* '+msg+'\n')
fd.close()