]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
define RCSProxyClient here instead of in RCSProxy.py
authorGuido van Rossum <guido@python.org>
Fri, 23 Jun 1995 21:59:12 +0000 (21:59 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 23 Jun 1995 21:59:12 +0000 (21:59 +0000)
Demo/pdist/rcsclient.py

index 8dfef7f20850f249839b5707b8e40b017263fe29..eb09bce027ed03734e394a651e4226f48e3f2512 100755 (executable)
@@ -9,6 +9,16 @@ HOST = 'voorn.cwi.nl'
 PORT = 4127
 VERBOSE = 1
 
+
+import client
+
+
+class RCSProxyClient(client.SecureClient):
+       
+    def __init__(self, address, verbose = client.VERBOSE):
+       client.SecureClient.__init__(self, address, verbose)
+
+
 def openrcsclient(opts = []):
        "open an RCSProxy client based on a list of options returned by getopt"
        import RCSProxy
@@ -33,7 +43,8 @@ def openrcsclient(opts = []):
                if o == '-q':
                        verbose = 0
        address = (host, port)
-       x = RCSProxy.RCSProxyClient(address, verbose)
+       # XXX For local operation, instantiate RCSProxy.RCSProxyLocal() here
+       x = RCSProxyClient(address, verbose)
        if not directory:
                try:
                        directory = open("CVS/Repository").readline()