From f2d092ee4b7eb8de3a1bc09b36f47595efd10b00 Mon Sep 17 00:00:00 2001 From: Vasily Ryabov Date: Sun, 22 Nov 2020 14:30:20 +0300 Subject: [PATCH 1/3] Add Python 3.9 to Travis CI tests, bump version. --- .travis.yml | 1 + Xlib/__init__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 524f0998..e7b949f0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ python: - "3.6" - "3.7" - "3.8" + - "3.9" # command to install dependencies install: diff --git a/Xlib/__init__.py b/Xlib/__init__.py index e38da5ea..2ff7aabc 100644 --- a/Xlib/__init__.py +++ b/Xlib/__init__.py @@ -19,7 +19,7 @@ # Suite 330, # Boston, MA 02111-1307 USA -__version__ = (0, 28) +__version__ = (0, 29) __version_extra__ = '' From e04b89e373151db7d631f0a0aa9ca71e7342fd8d Mon Sep 17 00:00:00 2001 From: Vasily Ryabov Date: Sun, 22 Nov 2020 14:40:54 +0300 Subject: [PATCH 2/3] Use encode_array() for array.array objects everywhere (.tostring() will be removed in Python 3.9). --- Xlib/ext/xinput.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xlib/ext/xinput.py b/Xlib/ext/xinput.py index fee0d93c..e219bffe 100644 --- a/Xlib/ext/xinput.py +++ b/Xlib/ext/xinput.py @@ -236,7 +236,7 @@ def fun(val): else: mask_seq.extend(val) - return mask_seq.tostring(), len(mask_seq), None + return rq.encode_array(mask_seq), len(mask_seq), None EventMask = rq.Struct( DEVICE('deviceid'), From d1180422496bb057f0f665c968d912e59d23f5e8 Mon Sep 17 00:00:00 2001 From: Vasily Ryabov Date: Sun, 22 Nov 2020 14:45:17 +0300 Subject: [PATCH 3/3] Update change log for 0.29. --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 128a892d..a5eba75f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ NEWS for Python X Library +Version 0.29 +============ + +Extensions +-------------------- + +- Drawable & XInput: Avoid using array.array.tostring() which wiil be removed in Python 3.9 (thanks @t-wissmann). + +--- Version 0.28 ============ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy