From: Adriana Draghici Date: Fri, 19 Mar 2010 12:59:24 +0000 (+0000) Subject: server: indent stuff X-Git-Tag: getopt_long~133 X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=05c1cd2f10712e0be18b8a5e6e54d659a85e3937;p=cs-p2p-next.git server: indent stuff --- diff --git a/bt_comm/server/Server.py b/bt_comm/server/Server.py index 4da3f7a..57e9421 100644 --- a/bt_comm/server/Server.py +++ b/bt_comm/server/Server.py @@ -148,11 +148,11 @@ def doServer(ip, port): class MyDaemon(Daemon): def run(self, ip, port): - doServer(ip, port) - + doServer(ip, port) + if __name__ == "__main__": - if len(sys.argv) == 4: + if len(sys.argv) == 4: daemon = MyDaemon('/tmp/daemon-example.pid', sys.argv[2], int(sys.argv[3])) if 'start' == sys.argv[1]: daemon.start()