From bae7351849cfc89e36c58109acde32a8a78e92b8 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Tue, 15 Nov 2016 17:09:08 +0100 Subject: [PATCH] Formating and standalone fix - when running as a standalone program, helper_msgcoding logger import was missing --- src/helper_msgcoding.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/helper_msgcoding.py b/src/helper_msgcoding.py index ad26cbcb..2ae44eea 100644 --- a/src/helper_msgcoding.py +++ b/src/helper_msgcoding.py @@ -5,6 +5,7 @@ import string import zlib import shared +from debug import logger import messagetypes from tr import _translate @@ -13,6 +14,7 @@ BITMESSAGE_ENCODING_TRIVIAL = 1 BITMESSAGE_ENCODING_SIMPLE = 2 BITMESSAGE_ENCODING_EXTENDED = 3 + class MsgEncode(object): def __init__(self, message, encoding=BITMESSAGE_ENCODING_SIMPLE): self.data = None