changeset 456:5f3c5c3fd524

sys module went away...
author Richard Jones <richard@users.sourceforge.net>
date Sat, 15 Dec 2001 23:47:07 +0000
parents 2198e5445d6b
children 6abdddc506e9
files roundup-server
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/roundup-server	Sat Dec 15 23:09:23 2001 +0000
+++ b/roundup-server	Sat Dec 15 23:47:07 2001 +0000
@@ -20,14 +20,14 @@
 
 Based on CGIHTTPServer in the Python library.
 
-$Id: roundup-server,v 1.22 2001-12-13 00:20:01 richard Exp $
+$Id: roundup-server,v 1.23 2001-12-15 23:47:07 richard Exp $
 
 """
 
 # python version check
 from roundup import version_check
 
-import os, urllib, StringIO, traceback, cgi, binascii, string, getopt, imp
+import sys, os, urllib, StringIO, traceback, cgi, binascii, getopt, imp
 import BaseHTTPServer
 
 # Roundup modules of use here
@@ -124,7 +124,7 @@
         # figure the instance
         if rest == '/':
             return self.index()
-        l_path = string.split(rest, '/')
+        l_path = rest.split('/')
         instance_name = urllib.unquote(l_path[1])
         if self.ROUNDUP_INSTANCE_HOMES.has_key(instance_name):
             instance_home = self.ROUNDUP_INSTANCE_HOMES[instance_name]
@@ -225,7 +225,7 @@
             d = {}
             for arg in args:
 		try:
-                    name, home = string.split(arg, '=')
+                    name, home = arg.split('=')
                 except ValueError:
                     raise ValueError, "Instances must be name=home"
                 d[name] = home
@@ -248,6 +248,10 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.22  2001/12/13 00:20:01  richard
+#  . Centralised the python version check code, bumped version to 2.1.1 (really
+#    needs to be 2.1.2, but that isn't released yet :)
+#
 # Revision 1.21  2001/12/02 05:06:16  richard
 # . We now use weakrefs in the Classes to keep the database reference, so
 #   the close() method on the database is no longer needed.

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