summaryrefslogtreecommitdiffstats
path: root/Demo/rpc/nfsclient.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-12-17 14:32:26 (GMT)
committerGuido van Rossum <guido@python.org>1993-12-17 14:32:26 (GMT)
commit9e80d6f12512803532aed39a0335e6346b77abf4 (patch)
treecf895d035b8a2d89574e565e0384e72f5635325e /Demo/rpc/nfsclient.py
parent7565b934144012f25e8b22d888572c048f0eb21a (diff)
downloadcpython-9e80d6f12512803532aed39a0335e6346b77abf4.zip
cpython-9e80d6f12512803532aed39a0335e6346b77abf4.tar.gz
cpython-9e80d6f12512803532aed39a0335e6346b77abf4.tar.bz2
*** empty log message ***
Diffstat (limited to 'Demo/rpc/nfsclient.py')
-rw-r--r--Demo/rpc/nfsclient.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Demo/rpc/nfsclient.py b/Demo/rpc/nfsclient.py
index 467e495..498e2d0 100644
--- a/Demo/rpc/nfsclient.py
+++ b/Demo/rpc/nfsclient.py
@@ -121,12 +121,12 @@ class NFSUnpacker(MountUnpacker):
class NFSClient(UDPClient):
- def init(self, host):
- return UDPClient.init(self, host, NFS_PROGRAM, NFS_VERSION)
+ def __init__(self, host):
+ UDPClient.__init__(self, host, NFS_PROGRAM, NFS_VERSION)
def addpackers(self):
- self.packer = NFSPacker().init()
- self.unpacker = NFSUnpacker().init('')
+ self.packer = NFSPacker()
+ self.unpacker = NFSUnpacker('')
def mkcred(self):
if self.cred == None:
@@ -183,7 +183,7 @@ def test():
if sys.argv[2:]: filesys = sys.argv[2]
else: filesys = None
from mountclient import UDPMountClient, TCPMountClient
- mcl = TCPMountClient().init(host)
+ mcl = TCPMountClient(host)
if filesys == None:
list = mcl.Export()
for item in list:
@@ -193,7 +193,7 @@ def test():
print sf
fh = sf[1]
if fh:
- ncl = NFSClient().init(host)
+ ncl = NFSClient(host)
as = ncl.Getattr(fh)
print as
list = ncl.Listdir(fh)