Formating and standalone fix

- when running as a standalone program, helper_msgcoding logger import
  was missing
This commit is contained in:
Peter Šurda 2016-11-15 17:09:08 +01:00
parent c6d45dd394
commit bae7351849
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -5,6 +5,7 @@ import string
import zlib import zlib
import shared import shared
from debug import logger
import messagetypes import messagetypes
from tr import _translate from tr import _translate
@ -13,6 +14,7 @@ BITMESSAGE_ENCODING_TRIVIAL = 1
BITMESSAGE_ENCODING_SIMPLE = 2 BITMESSAGE_ENCODING_SIMPLE = 2
BITMESSAGE_ENCODING_EXTENDED = 3 BITMESSAGE_ENCODING_EXTENDED = 3
class MsgEncode(object): class MsgEncode(object):
def __init__(self, message, encoding=BITMESSAGE_ENCODING_SIMPLE): def __init__(self, message, encoding=BITMESSAGE_ENCODING_SIMPLE):
self.data = None self.data = None