import os

from serf_master import SerfHandlerProxy
from base_handler import BaseHandler
try:
    from my_handler import MyHandler
except ImportError:
    print "Could not import user's handler."
    print "Defaulting to dummy handler."
    MyHandler = BaseHandler


if __name__ == '__main__':
    handler = SerfHandlerProxy()
    role = os.environ.get('ROLE') or 'no_role'
    handler.register(role, MyHandler())
    handler.run()
import os

from serf_master import SerfHandlerProxy
from base_handler import BaseHandler
try:
    from my_handler import MyHandler
except ImportError:
    MyHandler = BaseHandler


if __name__ == '__main__':
    handler = SerfHandlerProxy()
    role = os.environ.get('ROLE') or 'no_role'
    handler.register(role, MyHandler())
    handler.run()
Remove prints that interfere with json output
Remove prints that interfere with json output
  import os
  
  from serf_master import SerfHandlerProxy
  from base_handler import BaseHandler
  try:
      from my_handler import MyHandler
  except ImportError:
-     print "Could not import user's handler."
-     print "Defaulting to dummy handler."
      MyHandler = BaseHandler
  
  
  if __name__ == '__main__':
      handler = SerfHandlerProxy()
      role = os.environ.get('ROLE') or 'no_role'
      handler.register(role, MyHandler())
      handler.run()
Remove prints that interfere with json output
## Code Before:
import os

from serf_master import SerfHandlerProxy
from base_handler import BaseHandler
try:
    from my_handler import MyHandler
except ImportError:
    print "Could not import user's handler."
    print "Defaulting to dummy handler."
    MyHandler = BaseHandler


if __name__ == '__main__':
    handler = SerfHandlerProxy()
    role = os.environ.get('ROLE') or 'no_role'
    handler.register(role, MyHandler())
    handler.run()
## Instruction:
Remove prints that interfere with json output
## Code After:
import os

from serf_master import SerfHandlerProxy
from base_handler import BaseHandler
try:
    from my_handler import MyHandler
except ImportError:
    MyHandler = BaseHandler


if __name__ == '__main__':
    handler = SerfHandlerProxy()
    role = os.environ.get('ROLE') or 'no_role'
    handler.register(role, MyHandler())
    handler.run()