{"action":"created","issue":{"url":"https://api.github.com/repos/python-xlib/python-xlib/issues/49","repository_url":"https://api.github.com/repos/python-xlib/python-xlib","labels_url":"https://api.github.com/repos/python-xlib/python-xlib/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/python-xlib/python-xlib/issues/49/comments","events_url":"https://api.github.com/repos/python-xlib/python-xlib/issues/49/events","html_url":"https://github.com/python-xlib/python-xlib/pull/49","id":168509089,"number":49,"title":"Fix XRECORD extension and demo","user":{"login":"ctrlcctrlv","id":838783,"avatar_url":"https://avatars.githubusercontent.com/u/838783?v=3","gravatar_id":"","url":"https://api.github.com/users/ctrlcctrlv","html_url":"https://github.com/ctrlcctrlv","followers_url":"https://api.github.com/users/ctrlcctrlv/followers","following_url":"https://api.github.com/users/ctrlcctrlv/following{/other_user}","gists_url":"https://api.github.com/users/ctrlcctrlv/gists{/gist_id}","starred_url":"https://api.github.com/users/ctrlcctrlv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctrlcctrlv/subscriptions","organizations_url":"https://api.github.com/users/ctrlcctrlv/orgs","repos_url":"https://api.github.com/users/ctrlcctrlv/repos","events_url":"https://api.github.com/users/ctrlcctrlv/events{/privacy}","received_events_url":"https://api.github.com/users/ctrlcctrlv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-31T09:06:48Z","updated_at":"2016-07-31T09:08:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/python-xlib/python-xlib/pulls/49","html_url":"https://github.com/python-xlib/python-xlib/pull/49","diff_url":"https://github.com/python-xlib/python-xlib/pull/49.diff","patch_url":"https://github.com/python-xlib/python-xlib/pull/49.patch"},"body":"Fixes the following traceback when running under Python 3.5\r\n\r\nConfirmed it's still working under Python 2.7\r\n\r\n```\r\n[osboxes@osboxes QMouseKeys]$ python record_demo.py\r\nRECORD extension version 1.13\r\nTraceback (most recent call last):\r\n  File \"record_demo.py\", line 105, in <module>\r\n    record_dpy.record_enable_context(ctx, record_callback)\r\n  File \"/usr/lib/python3.5/site-packages/Xlib/ext/record.py\", line 243, in enable_context\r\n    context = context)\r\n  File \"/usr/lib/python3.5/site-packages/Xlib/ext/record.py\", line 220, in __init__\r\n    rq.ReplyRequest.__init__(self, *args, **keys)\r\n  File \"/usr/lib/python3.5/site-packages/Xlib/protocol/rq.py\", line 1361, in __init__\r\n    self.reply()\r\n  File \"/usr/lib/python3.5/site-packages/Xlib/protocol/rq.py\", line 1373, in reply\r\n    self._display.send_and_recv(request = self._serial)\r\n  File \"/usr/lib/python3.5/site-packages/Xlib/protocol/display.py\", line 576, in send_and_recv\r\n    gotreq = self.parse_response(request)\r\n  File \"/usr/lib/python3.5/site-packages/Xlib/protocol/display.py\", line 668, in parse_response\r\n    gotreq = self.parse_request_response(request) or gotreq\r\n  File \"/usr/lib/python3.5/site-packages/Xlib/protocol/display.py\", line 756, in parse_request_response\r\n    req._parse_response(self.data_recv[:self.recv_packet_len])\r\n  File \"/usr/lib/python3.5/site-packages/Xlib/ext/record.py\", line 224, in _parse_response\r\n    self._callback(r)\r\n  File \"record_demo.py\", line 50, in record_callback\r\n    if not len(reply.data) or reply.data[0] < 2:\r\nTypeError: unorderable types: str() < int()\r\n```"},"comment":{"url":"https://api.github.com/repos/python-xlib/python-xlib/issues/comments/236419476","html_url":"https://github.com/python-xlib/python-xlib/pull/49#issuecomment-236419476","issue_url":"https://api.github.com/repos/python-xlib/python-xlib/issues/49","id":236419476,"user":{"login":"codecov-io","id":8655789,"avatar_url":"https://avatars.githubusercontent.com/u/8655789?v=3","gravatar_id":"","url":"https://api.github.com/users/codecov-io","html_url":"https://github.com/codecov-io","followers_url":"https://api.github.com/users/codecov-io/followers","following_url":"https://api.github.com/users/codecov-io/following{/other_user}","gists_url":"https://api.github.com/users/codecov-io/gists{/gist_id}","starred_url":"https://api.github.com/users/codecov-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecov-io/subscriptions","organizations_url":"https://api.github.com/users/codecov-io/orgs","repos_url":"https://api.github.com/users/codecov-io/repos","events_url":"https://api.github.com/users/codecov-io/events{/privacy}","received_events_url":"https://api.github.com/users/codecov-io/received_events","type":"User","site_admin":false},"created_at":"2016-07-31T09:08:43Z","updated_at":"2016-07-31T09:08:43Z","body":"## [Current coverage](https://codecov.io/gh/python-xlib/python-xlib/pull/49?src=pr) is 81.25% (diff: 0.00%)\n> Merging [#49](https://codecov.io/gh/python-xlib/python-xlib/pull/49?src=pr) into [master](https://codecov.io/gh/python-xlib/python-xlib/branch/master?src=pr) will not change coverage\n\n\n```diff\n@@             master        #49   diff @@\n==========================================\n  Files            39         39          \n  Lines          4380       4380          \n  Methods           0          0          \n  Messages          0          0          \n  Branches          0          0          \n==========================================\n  Hits           3559       3559          \n  Misses          821        821          \n  Partials          0          0          \n```\n\n> Powered by [Codecov](https://codecov.io?src=pr). Last update [a3e13d6...c40bd3b](https://codecov.io/gh/python-xlib/python-xlib/compare/a3e13d63732d8f947f806ca3e0aaee7432adeeaf...c40bd3bc62582a7bbfc3176c9cea837317b04a8c?src=pr)"}}
{"actor":{"display_login":"codecov-io"}}