Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Xlib/protocol/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ class PutImage(rq.Request):
rq.Card8('left_pad'),
rq.Card8('depth'),
rq.Pad(2),
rq.String8('data'),
rq.Binary('data'),
)

class GetImage(rq.ReplyRequest):
Expand All @@ -1089,7 +1089,7 @@ class GetImage(rq.ReplyRequest):
rq.ReplyLength(),
rq.Card32('visual'),
rq.Pad(20),
rq.String8('data'),
rq.Binary('data'),
)

class PolyText8(rq.Request):
Expand Down
6 changes: 3 additions & 3 deletions test/gen/genprottest.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ def rand(x, rmin = rmin, rmax = rmax):
#
# byte-char string
#
elif isinstance(f, rq.String8):
elif isinstance(f, (rq.String8, rq.Binary)):
vfstr = vardefs[i]
vflen = len(vfstr)

Expand Down Expand Up @@ -933,7 +933,7 @@ def build_bin(bin):
'FillPoly': (('Point', 3), ),
'PolyFillRectangle': (('Rectangle', 2), ),
'PolyFillArc': (('Arc', 1), ),
'PutImage': ('bit map data', ),
'PutImage': (b'\xe9\x10\xf2o\x7f{\xae-\xe6\x18\xce\x83', ),
'ImageText8': ('showme', ),
'ImageText16': ('showmore', ),
'AllocNamedColor': ('octarin', ),
Expand Down Expand Up @@ -967,7 +967,7 @@ def build_bin(bin):
'ListFontsWithInfo': (('FontProp', 1), 'fontfont'),
'GetFontPath': [(['path1', 'path2232'], ),
([], ) ],
'GetImage': ('this is real ly imag e b-map', ),
'GetImage': (b'\xeb?:\xa7\xc6\x8b\xc2\x96o-S\xe6\xd6z6\x94\xd7v\xd2R.\xa2\xeaw\t\x13\x95\x85',),
'ListInstalledColormaps': (2, ),
'AllocColorCells': [(17, 3),
(0, 0) ],
Expand Down
Empty file modified test/test_events_be.py
100644 → 100755
Empty file.
Loading