Kaydet (Commit) 72974f35 authored tarafından Guido van Rossum's avatar Guido van Rossum

define RCSProxyClient here instead of in RCSProxy.py

üst 802c437a
...@@ -9,6 +9,16 @@ HOST = 'voorn.cwi.nl' ...@@ -9,6 +9,16 @@ HOST = 'voorn.cwi.nl'
PORT = 4127 PORT = 4127
VERBOSE = 1 VERBOSE = 1
import client
class RCSProxyClient(client.SecureClient):
def __init__(self, address, verbose = client.VERBOSE):
client.SecureClient.__init__(self, address, verbose)
def openrcsclient(opts = []): def openrcsclient(opts = []):
"open an RCSProxy client based on a list of options returned by getopt" "open an RCSProxy client based on a list of options returned by getopt"
import RCSProxy import RCSProxy
...@@ -33,7 +43,8 @@ def openrcsclient(opts = []): ...@@ -33,7 +43,8 @@ def openrcsclient(opts = []):
if o == '-q': if o == '-q':
verbose = 0 verbose = 0
address = (host, port) address = (host, port)
x = RCSProxy.RCSProxyClient(address, verbose) # XXX For local operation, instantiate RCSProxy.RCSProxyLocal() here
x = RCSProxyClient(address, verbose)
if not directory: if not directory:
try: try:
directory = open("CVS/Repository").readline() directory = open("CVS/Repository").readline()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment