Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4fc2dafc
Commit
4fc2dafc
authored
Oct 11, 1995
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
undo opaque=fopaque changes; make test script more flexible
parent
d6462402
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
Demo/rpc/test
Demo/rpc/test
+4
-3
Demo/rpc/xdr.py
Demo/rpc/xdr.py
+2
-2
No files found.
Demo/rpc/test
View file @
4fc2dafc
: ${PYTHON=python}
: ${SERVER=charon.cwi.nl}
set -xe
$PYTHON -c 'from rpc import test; test()'
$PYTHON -c 'from rpc import test; test()'
charon.cwi.nl
$PYTHON -c 'from rpc import test; test()'
${SERVER}
$PYTHON -c 'from rpc import testsvr; testsvr()' &
SVR
=$!
PID
=$!
sleep 2
$PYTHON -c 'from rpc import testclt; testclt()'
kill -2 $
SVR
kill -2 $
PID
$PYTHON -c 'from mountclient import test; test()'
$PYTHON -c 'from mountclient import test; test()' gatekeeper.dec.com
...
...
Demo/rpc/xdr.py
View file @
4fc2dafc
...
...
@@ -69,7 +69,7 @@ class Packer:
self
.
pack_uint
(
n
)
self
.
pack_fstring
(
n
,
s
)
pack_opaque
=
pack_
fopaque
pack_opaque
=
pack_
string
def
pack_list
(
self
,
list
,
pack_item
):
for
item
in
list
:
...
...
@@ -176,7 +176,7 @@ class Unpacker:
n
=
self
.
unpack_uint
()
return
self
.
unpack_fstring
(
n
)
unpack_opaque
=
unpack_
fopaque
unpack_opaque
=
unpack_
string
def
unpack_list
(
self
,
unpack_item
):
list
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment