Skip to content

Commit 89e2c66

Browse files
author
Richard Jones
committed
sys module went away...
1 parent ff80c74 commit 89e2c66

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

roundup-server

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
2121
Based on CGIHTTPServer in the Python library.
2222
23-
$Id: roundup-server,v 1.22 2001-12-13 00:20:01 richard Exp $
23+
$Id: roundup-server,v 1.23 2001-12-15 23:47:07 richard Exp $
2424
2525
"""
2626

2727
# python version check
2828
from roundup import version_check
2929

30-
import os, urllib, StringIO, traceback, cgi, binascii, string, getopt, imp
30+
import sys, os, urllib, StringIO, traceback, cgi, binascii, getopt, imp
3131
import BaseHTTPServer
3232

3333
# Roundup modules of use here
@@ -124,7 +124,7 @@ class RoundupRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
124124
# figure the instance
125125
if rest == '/':
126126
return self.index()
127-
l_path = string.split(rest, '/')
127+
l_path = rest.split('/')
128128
instance_name = urllib.unquote(l_path[1])
129129
if self.ROUNDUP_INSTANCE_HOMES.has_key(instance_name):
130130
instance_home = self.ROUNDUP_INSTANCE_HOMES[instance_name]
@@ -225,7 +225,7 @@ def main():
225225
d = {}
226226
for arg in args:
227227
try:
228-
name, home = string.split(arg, '=')
228+
name, home = arg.split('=')
229229
except ValueError:
230230
raise ValueError, "Instances must be name=home"
231231
d[name] = home
@@ -248,6 +248,10 @@ if __name__ == '__main__':
248248

249249
#
250250
# $Log: not supported by cvs2svn $
251+
# Revision 1.22 2001/12/13 00:20:01 richard
252+
# . Centralised the python version check code, bumped version to 2.1.1 (really
253+
# needs to be 2.1.2, but that isn't released yet :)
254+
#
251255
# Revision 1.21 2001/12/02 05:06:16 richard
252256
# . We now use weakrefs in the Classes to keep the database reference, so
253257
# the close() method on the database is no longer needed.

0 commit comments

Comments
 (0)