
from .version import __version__, __version_info__
from .exceptions import BaseASTMError, NotAccepted, InvalidState
from .codec import (
    decode, decode_message, decode_record,
    encode, encode_message, encode_record,
    make_checksum
)
from .mapping import Record, Component
from .records import (
    HeaderRecord, PatientRecord, OrderRecord,
    ResultRecord, CommentRecord, TerminatorRecord
)
from .protocol import ASTMProtocol
from .client import Client
from .server import RequestHandler, Server

import logging
log = logging.getLogger()
log.addHandler(logging.NullHandler())


from .version import __version__, __version_info__
from .exceptions import BaseASTMError, NotAccepted, InvalidState
from .codec import (
    decode, decode_message, decode_record,
    encode, encode_message, encode_record,
    make_checksum
)
from .mapping import Record, Component
from .records import (
    HeaderRecord, PatientRecord, OrderRecord,
    ResultRecord, CommentRecord, TerminatorRecord
)
from .protocol import ASTMProtocol
from .client import Client
from .server import RequestHandler, Server

import logging
log = logging.getLogger()

class NullHandler(logging.Handler):
    def emit(self, *args, **kwargs):
        pass

log.addHandler(NullHandler())

Fix compatibility issue with Python 2.6
Fix compatibility issue with Python 2.6

  
  from .version import __version__, __version_info__
  from .exceptions import BaseASTMError, NotAccepted, InvalidState
  from .codec import (
      decode, decode_message, decode_record,
      encode, encode_message, encode_record,
      make_checksum
  )
  from .mapping import Record, Component
  from .records import (
      HeaderRecord, PatientRecord, OrderRecord,
      ResultRecord, CommentRecord, TerminatorRecord
  )
  from .protocol import ASTMProtocol
  from .client import Client
  from .server import RequestHandler, Server
  
  import logging
  log = logging.getLogger()
- log.addHandler(logging.NullHandler())
  
+ class NullHandler(logging.Handler):
+     def emit(self, *args, **kwargs):
+         pass
+ 
+ log.addHandler(NullHandler())
+ 
Fix compatibility issue with Python 2.6
## Code Before:

from .version import __version__, __version_info__
from .exceptions import BaseASTMError, NotAccepted, InvalidState
from .codec import (
    decode, decode_message, decode_record,
    encode, encode_message, encode_record,
    make_checksum
)
from .mapping import Record, Component
from .records import (
    HeaderRecord, PatientRecord, OrderRecord,
    ResultRecord, CommentRecord, TerminatorRecord
)
from .protocol import ASTMProtocol
from .client import Client
from .server import RequestHandler, Server

import logging
log = logging.getLogger()
log.addHandler(logging.NullHandler())

## Instruction:
Fix compatibility issue with Python 2.6
## Code After:

from .version import __version__, __version_info__
from .exceptions import BaseASTMError, NotAccepted, InvalidState
from .codec import (
    decode, decode_message, decode_record,
    encode, encode_message, encode_record,
    make_checksum
)
from .mapping import Record, Component
from .records import (
    HeaderRecord, PatientRecord, OrderRecord,
    ResultRecord, CommentRecord, TerminatorRecord
)
from .protocol import ASTMProtocol
from .client import Client
from .server import RequestHandler, Server

import logging
log = logging.getLogger()

class NullHandler(logging.Handler):
    def emit(self, *args, **kwargs):
        pass

log.addHandler(NullHandler())
