From: richard Date: Sat, 15 Dec 2001 23:47:07 +0000 (+0000) Subject: sys module went away... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bf0c8d95b60ccbcbd1d6bd9fe33fe00bc72cc309;p=roundup.git sys module went away... git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@468 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup-server b/roundup-server index dbf2b22..1d204e0 100755 --- a/roundup-server +++ b/roundup-server @@ -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 @@ class RoundupRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): # 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 @@ def main(): 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 @@ if __name__ == '__main__': # # $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.