From d42d68f0beec1262c364b47f113ef5321717cf36 Mon Sep 17 00:00:00 2001 From: Tiger-222 Date: Tue, 4 Sep 2018 20:06:40 +0200 Subject: [PATCH] Release 3.3.0 --- CHANGELOG | 3 ++- README.rst | 2 +- mss/tools.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 2afcfcc3..69b4ab96 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,10 +2,11 @@ History: -3.3.0 2018/08/xx +3.3.0 2018/09/04 - Linux: add an error handler for the XServer to prevent interpreter crash (fix #61) - MSS: fix a ResourceWarning: unclosed file in setup.py - tests: fix a ResourceWarning: unclosed file + - doc: fix a typo in Screenshot.pixel() method (thanks to @mchlnix) - big code clean-up using black 3.2.1 2018/05/21 diff --git a/README.rst b/README.rst index d75318ca..f84c602d 100644 --- a/README.rst +++ b/README.rst @@ -37,4 +37,4 @@ Installation You can install it with pip:: - pip install --upgrade mss + python -m pip install --upgrade mss diff --git a/mss/tools.py b/mss/tools.py index 77cfc5f7..73874b5f 100644 --- a/mss/tools.py +++ b/mss/tools.py @@ -24,7 +24,7 @@ def to_png(data, size, level=6, output=None): line = width * 3 png_filter = struct.pack(">B", 0) scanlines = b"".join( - [png_filter + data[y * line : y * line + line] for y in range(height)] + [png_filter + data[y * line:y * line + line] for y in range(height)] ) magic = struct.pack(">8B", 137, 80, 78, 71, 13, 10, 26, 10)