From cfad9dd366420682119d32e6f250fe203ad792f8 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Mon, 22 May 2017 21:52:08 +0200 Subject: Simplify The default encoding for str.encode and .decode is "utf-8". --- miniircd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miniircd b/miniircd index b2534a5..ba63820 100755 --- a/miniircd +++ b/miniircd @@ -40,10 +40,10 @@ PY3 = sys.version_info[0] >= 3 if PY3: def buffer_to_socket(msg): - return msg.encode('utf-8') + return msg.encode() def socket_to_buffer(buf): - return buf.decode('utf-8') + return buf.decode() else: def buffer_to_socket(msg): return msg -- cgit v1.2.3