get_full_property() throws exceptions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-xlib (Ubuntu) |
Fix Released
|
Undecided
|
Marc Deslauriers |
Bug Description
with 0.14+20091101-1, the test.py works well.
$ python test.py
Xlib.protocol.
_NET_SUPPORTED is supported
False
_NET_WM_NAME is not supported
True
but with 0.14+20091101-
$ # python2
$ python test.py
<class 'Xlib.protocol.
_NET_SUPPORTED is supported
Traceback (most recent call last):
File "test.py", line 16, in <module>
print (root.get_
File "/usr/lib/
prop.
TypeError: unsupported operand type(s) for +: 'GetProperty' and 'int'
_NET_WM_NAME is not supported
Traceback (most recent call last):
File "test.py", line 27, in <module>
print (root.get_
File "/usr/lib/
prop = self.get_
File "/usr/lib/
long_length = length)
File "/usr/lib/
self.reply()
File "/usr/lib/
self.
File "/usr/lib/
gotreq = self.parse_
File "/usr/lib/
gotreq = self.parse_
File "/usr/lib/
req.
File "/usr/lib/
self._data, d = self._reply.
File "<string>", line 8, in parse_binary
File "/usr/lib/
if type(ret[1]) is bytes:
TypeError: 'NoneType' object has no attribute '__getitem__'
$ # python3
$ python3 test.py
<class 'Xlib.protocol.
_NET_SUPPORTED is supported
Traceback (most recent call last):
File "test.py", line 16, in <module>
print (root.get_
File "/usr/lib/
prop.
TypeError: unsupported operand type(s) for +: 'GetProperty' and 'int'
_NET_WM_NAME is not supported
Traceback (most recent call last):
File "test.py", line 27, in <module>
print (root.get_
File "/usr/lib/
prop = self.get_
File "/usr/lib/
long_length = length)
File "/usr/lib/
self.reply()
File "/usr/lib/
self.
File "/usr/lib/
gotreq = self.parse_
File "/usr/lib/
gotreq = self.parse_
File "/usr/lib/
req.
File "/usr/lib/
self._data, d = self._reply.
File "<string>", line 8, in parse_binary
File "/usr/lib/
if type(ret[1]) is bytes:
TypeError: 'NoneType' object is not subscriptable
Changed in python-xlib (Ubuntu): | |
assignee: | nobody → Marc Deslauriers (mdeslaur) |
status: | Confirmed → Fix Committed |
Status changed to 'Confirmed' because the bug affects multiple users.