diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-07-19 02:23:19 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-07-19 02:23:19 +0200 |
commit | 0aca8ebfb15237e60effce06ccff2085516117f6 (patch) | |
tree | e3f28471f4f682f333d5f1b0725ec6572b9cb1bc /module/forwarder.py | |
parent | Move test stuff to common directory (diff) | |
download | pyload-0aca8ebfb15237e60effce06ccff2085516117f6.tar.xz |
Remove self-tests from all files
Diffstat (limited to 'module/forwarder.py')
-rw-r--r-- | module/forwarder.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/module/forwarder.py b/module/forwarder.py index 52d2afd71..3cb3a7748 100644 --- a/module/forwarder.py +++ b/module/forwarder.py @@ -59,13 +59,3 @@ def forward(source, destination): else: #source.shutdown(socket.SHUT_RD) destination.shutdown(socket.SHUT_WR) - -if __name__ == "__main__": - args = argv[1:] - if not args: - print "Usage: forwarder.py <remote ip> <remote port>" - exit() - if len(args) == 1: - args.append(9666) - - f = Forwarder(args[0], int(args[1])) |