Formating and standalone fix
- when running as a standalone program, helper_msgcoding logger import was missing
This commit is contained in:
parent
c6d45dd394
commit
bae7351849
|
@ -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
|
||||||
|
|
Reference in New Issue
Block a user