Commits

Miki Tebeka committed 29e0b38

pep8

  • Participants
  • Parent commits af7b2de

Comments (0)

Files changed (1)

 import socket
 
 EOF = chr(4)
+DEFAULT_PORT = 9998
+
 
 class PyHandler(StreamRequestHandler):
     password = None
     daemon_threads = True
     allow_reuse_address = True
 
+
 def server_thread(env, port, password=None):
     # Create a new handler class for this with it's own env
     class Handler(PyHandler):
     server = ThreadedServer(('localhost', port), Handler)
     server.serve_forever()
 
-DEFAULT_PORT = 9998
+
 def install(env=None, port=DEFAULT_PORT, password=None):
     env = env or {}
     t = Thread(target=server_thread, args=(env, port, password))
 
     return t
 
+
 def main(argv=None):
     import sys
     from argparse import ArgumentParser
 
 if __name__ == '__main__':
     main()
-