forked from pool/python-autoflake
- 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:
20
support-python312.patch
Normal file
20
support-python312.patch
Normal 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,
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user