15
0

- Add upstream support-python312.patch gh#PyCQA/autoflake#280

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autoflake?expand=0&rev=25
This commit is contained in:
2024-02-06 18:29:11 +00:00
committed by Git OBS Bridge
parent b667837d52
commit 92b5e4332e
3 changed files with 29 additions and 2 deletions

20
support-python312.patch Normal file
View File

@@ -0,0 +1,20 @@
Index: autoflake-2.2.1/test_autoflake.py
===================================================================
--- autoflake-2.2.1.orig/test_autoflake.py
+++ autoflake-2.2.1/test_autoflake.py
@@ -928,6 +928,7 @@ StrictVersion('1.0.0')
from distutils.version import LooseVersion, StrictVersion
StrictVersion('1.0.0')
""",
+ remove_all_unused_imports=True,
),
)
@@ -941,6 +942,7 @@ version('1.0.0')
from distutils.version import LooseVersion, StrictVersion as version
version('1.0.0')
""",
+ remove_all_unused_imports=True,
),
)