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
1913644c
Commit
1913644c
authored
Oct 04, 1995
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fixes
parent
06e31ae2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Demo/rpc/rpc.py
Demo/rpc/rpc.py
+1
-1
Demo/rpc/xdr.py
Demo/rpc/xdr.py
+3
-3
No files found.
Demo/rpc/rpc.py
View file @
1913644c
...
@@ -376,7 +376,7 @@ class RawBroadcastUDPClient(RawUDPClient):
...
@@ -376,7 +376,7 @@ class RawBroadcastUDPClient(RawUDPClient):
def
connsocket
(
self
):
def
connsocket
(
self
):
# Don't connect -- use sendto
# Don't connect -- use sendto
self
.
sock
.
allowbroadcast
(
1
)
self
.
sock
.
setsockopt
(
socket
.
SOL_SOCKET
,
socket
.
SO_BROADCAST
,
1
)
def
set_reply_handler
(
self
,
reply_handler
):
def
set_reply_handler
(
self
,
reply_handler
):
self
.
reply_handler
=
reply_handler
self
.
reply_handler
=
reply_handler
...
...
Demo/rpc/xdr.py
View file @
1913644c
...
@@ -69,7 +69,7 @@ class Packer:
...
@@ -69,7 +69,7 @@ class Packer:
self
.
pack_uint
(
n
)
self
.
pack_uint
(
n
)
self
.
pack_fstring
(
n
,
s
)
self
.
pack_fstring
(
n
,
s
)
pack_opaque
=
pack_
string
pack_opaque
=
pack_
fopaque
def
pack_list
(
self
,
list
,
pack_item
):
def
pack_list
(
self
,
list
,
pack_item
):
for
item
in
list
:
for
item
in
list
:
...
@@ -86,7 +86,7 @@ class Packer:
...
@@ -86,7 +86,7 @@ class Packer:
def
pack_array
(
self
,
list
,
pack_item
):
def
pack_array
(
self
,
list
,
pack_item
):
n
=
len
(
list
)
n
=
len
(
list
)
self
.
pack_uint
(
n
)
self
.
pack_uint
(
n
)
self
.
pack_farray
(
n
,
list
)
self
.
pack_farray
(
n
,
list
,
pack_item
)
class
Unpacker
:
class
Unpacker
:
...
@@ -176,7 +176,7 @@ class Unpacker:
...
@@ -176,7 +176,7 @@ class Unpacker:
n
=
self
.
unpack_uint
()
n
=
self
.
unpack_uint
()
return
self
.
unpack_fstring
(
n
)
return
self
.
unpack_fstring
(
n
)
unpack_opaque
=
unpack_
string
unpack_opaque
=
unpack_
fopaque
def
unpack_list
(
self
,
unpack_item
):
def
unpack_list
(
self
,
unpack_item
):
list
=
[]
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