From 50b3688814031875c894ae92f7fa616eb7e6c53c Mon Sep 17 00:00:00 2001 From: Phillip Berndt Date: Wed, 22 Dec 2021 13:25:35 +0100 Subject: [PATCH] Fix modified dictionary iteration as 1.12.1 See #273 --- README.md | 3 +++ autorandr.py | 4 ++-- contrib/packaging/rpm/autorandr.spec | 2 +- setup.py | 8 ++++++-- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d978593..7d320a1 100644 --- a/README.md +++ b/README.md @@ -249,6 +249,9 @@ options nvidia_drm modeset=1 ## Changelog +**autorandr 1.12.1** +* *2021-12-22* Fix `--match-edid` (see #273) + **autorandr 1.12** * *2021-12-16* Switch default interpreter to Python 3 * *2021-12-16* Add `--list` to list all profiles diff --git a/autorandr.py b/autorandr.py index 73ae1dc..6d0163c 100755 --- a/autorandr.py +++ b/autorandr.py @@ -53,7 +53,7 @@ if sys.version_info.major == 2: else: import configparser -__version__ = "1.12" +__version__ = "1.12.1" try: input = raw_input @@ -649,7 +649,7 @@ def update_profiles_edid(profiles, config): profile_config = profiles[p]["config"] for edid in edid_map: - for c in profile_config.keys(): + for c in list(profile_config.keys()): if profile_config[c].edid != edid or c == edid_map[edid]: continue diff --git a/contrib/packaging/rpm/autorandr.spec b/contrib/packaging/rpm/autorandr.spec index efb3c4f..26533df 100644 --- a/contrib/packaging/rpm/autorandr.spec +++ b/contrib/packaging/rpm/autorandr.spec @@ -1,5 +1,5 @@ Name: autorandr -Version: 1.12 +Version: 1.12.1 Release: %autorelease Summary: Automatically select a display configuration based on connected devices diff --git a/setup.py b/setup.py index c3f1858..ed729ba 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ except: setup( name='autorandr', - version='1.12.post1', + version='1.12.1.post1', description='Automatically select a display configuration based on connected devices', long_description=long_description, @@ -35,7 +35,11 @@ setup( 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', ], keywords='xrandr', -- 2.39.2