comparison roundup-server @ 32:b475e7d3ce52

actually quit if python version wrong
author Anthony Baxter <anthonybaxter@users.sourceforge.net>
date Mon, 23 Jul 2001 04:05:05 +0000
parents e5e9ea306a09
children 33bfce110d1e
comparison
equal deleted inserted replaced
31:6eebdf2bf262 32:b475e7d3ce52
1 #!/usr/bin/python 1 #!/usr/bin/python
2 """ HTTP Server that serves roundup. 2 """ HTTP Server that serves roundup.
3 3
4 Stolen from CGIHTTPServer 4 Stolen from CGIHTTPServer
5 5
6 $Id: roundup-server,v 1.1 2001-07-23 03:46:48 richard Exp $ 6 $Id: roundup-server,v 1.2 2001-07-23 04:05:05 anthonybaxter Exp $
7 7
8 """ 8 """
9 import sys 9 import sys
10 if int(sys.version[0]) < 2: 10 if int(sys.version[0]) < 2:
11 print "Content-Type: text/plain\n" 11 print "Content-Type: text/plain\n"
12 print "Roundup requires Python 2.0 or newer." 12 print "Roundup requires Python 2.0 or newer."
13 sys.exit(0)
13 14
14 __version__ = "0.1" 15 __version__ = "0.1"
15 16
16 __all__ = ["RoundupRequestHandler"] 17 __all__ = ["RoundupRequestHandler"]
17 18
217 print 'Roundup server started on', address 218 print 'Roundup server started on', address
218 httpd.serve_forever() 219 httpd.serve_forever()
219 220
220 # 221 #
221 # $Log: not supported by cvs2svn $ 222 # $Log: not supported by cvs2svn $
223 # Revision 1.1 2001/07/23 03:46:48 richard
224 # moving the bin files to facilitate out-of-the-boxness
225 #
222 # Revision 1.1 2001/07/22 11:15:45 richard 226 # Revision 1.1 2001/07/22 11:15:45 richard
223 # More Grande Splite stuff 227 # More Grande Splite stuff
224 # 228 #
225 # 229 #
226 230

Roundup Issue Tracker: http://roundup-tracker.org/