mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Move xdrlib over to the bytes type.
This commit is contained in:
parent
d24fffe7c6
commit
1eb79cfd6d
2 changed files with 7 additions and 7 deletions
|
@ -8,8 +8,8 @@ class XDRTest(unittest.TestCase):
|
|||
def test_xdr(self):
|
||||
p = xdrlib.Packer()
|
||||
|
||||
s = 'hello world'
|
||||
a = ['what', 'is', 'hapnin', 'doctor']
|
||||
s = b'hello world'
|
||||
a = [b'what', b'is', b'hapnin', b'doctor']
|
||||
|
||||
p.pack_int(42)
|
||||
p.pack_uint(9)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue