[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/master] Factor out output_status function.



commit 7d116e83f14410070e7a3c75f0850a2fff366b79
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Wed Mar 6 21:37:31 2013 -0800

    Factor out output_status function.
---
 facilitator/facilitator.cgi |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/facilitator/facilitator.cgi b/facilitator/facilitator.cgi
index 72bbf89..fdcc431 100755
--- a/facilitator/facilitator.cgi
+++ b/facilitator/facilitator.cgi
@@ -12,10 +12,13 @@ import fac
 FACILITATOR_ADDR = ("127.0.0.1", 9002)
 FACILITATOR_REG_URL_ADDR = ("127.0.0.1", 9003)
 
-def exit_error(status):
+def output_status(status):
     print """\
 Status: %d\r
 \r""" % status
+
+def exit_error(status):
+    output_status(status)
     sys.exit()
 
 # Send a client registration to the helper daemon,



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits