Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-blue for openSUSE:Factory 
checked in at 2022-09-19 16:04:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-blue (Old)
 and      /work/SRC/openSUSE:Factory/.python-blue.new.2083 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-blue"

Mon Sep 19 16:04:15 2022 rev:7 rq:1004677 version:0.9.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-blue/python-blue.changes  2022-05-12 
23:01:06.612857210 +0200
+++ /work/SRC/openSUSE:Factory/.python-blue.new.2083/python-blue.changes        
2022-09-19 16:04:25.582325008 +0200
@@ -1,0 +2,6 @@
+Mon Sep 19 10:14:39 UTC 2022 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Add flake8-v5-compatibility.patch wich makes it work with flake8 v5
+  gh#grantjenks/blue#78
+
+-------------------------------------------------------------------

New:
----
  flake8-v5-compatibility.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-blue.spec ++++++
--- /var/tmp/diff_new_pack.wvmJxe/_old  2022-09-19 16:04:26.042326237 +0200
+++ /var/tmp/diff_new_pack.wvmJxe/_new  2022-09-19 16:04:26.046326247 +0200
@@ -29,6 +29,8 @@
 Patch0:         unpin-black.patch
 # PATCH-FIX-OPENSUSE unpin-tomli.patch -- gh#grantjenks/blue#66
 Patch1:         unpin-tomli.patch
+# PATCH-FIX-UPSTREAM flake8-v5-compatibility.patch -- gh#grantjenks/blue#78
+Patch2:         flake8-v5-compatibility.patch
 BuildRequires:  %{python_module Sphinx}
 BuildRequires:  %{python_module base >= 3.6}
 BuildRequires:  %{python_module black >= 21.7}

++++++ flake8-v5-compatibility.patch ++++++
--- a/blue/__init__.py
+++ b/blue/__init__.py
@@ -397,9 +397,12 @@ def format_file_in_place(*args, **kws):
 
 
 try:
-    BaseConfigParser = flake8_config.ConfigParser              # flake8 v4
+    BaseConfigParser = flake8_config.configparser.ConfigParser     # flake8 v5
 except AttributeError:
-    BaseConfigParser = flake8_config.MergedConfigParser        # flake8 v3
+    try:
+        BaseConfigParser = flake8_config.ConfigParser              # flake8 v4
+    except AttributeError:
+        BaseConfigParser = flake8_config.MergedConfigParser        # flake8 v3
 
 
 class MergedConfigParser(BaseConfigParser):

Reply via email to