debian/lib/python/debian_linux/debian.py: Fix deprecated import of MutableSet
Python 3.7 warns: .../debian/lib/python/debian_linux/debian.py:403: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working class PackageArchitecture(collections.MutableSet):
This commit is contained in:
parent
5b89c3198f
commit
32af5cef75
|
@ -12,6 +12,8 @@ linux (4.19.12-2) UNRELEASED; urgency=medium
|
||||||
* [powerpc,powerpcspe,ppc64] linux-config: Eliminate config.*_bootwrapper.gz
|
* [powerpc,powerpcspe,ppc64] linux-config: Eliminate config.*_bootwrapper.gz
|
||||||
files
|
files
|
||||||
* [powerpcspe] Fix -mcpu= options for SPE-only compiler
|
* [powerpcspe] Fix -mcpu= options for SPE-only compiler
|
||||||
|
* debian/lib/python/debian_linux/debian.py: Fix deprecated import of
|
||||||
|
MutableSet
|
||||||
|
|
||||||
[ Salvatore Bonaccorso ]
|
[ Salvatore Bonaccorso ]
|
||||||
* USB: hso: Fix OOB memory access in hso_probe/hso_get_config_data
|
* USB: hso: Fix OOB memory access in hso_probe/hso_get_config_data
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import collections
|
import collections
|
||||||
|
import collections.abc
|
||||||
import os.path
|
import os.path
|
||||||
import re
|
import re
|
||||||
import unittest
|
import unittest
|
||||||
|
@ -400,7 +401,7 @@ class _VersionLinuxTest(unittest.TestCase):
|
||||||
self.assertTrue(v.linux_revision_other)
|
self.assertTrue(v.linux_revision_other)
|
||||||
|
|
||||||
|
|
||||||
class PackageArchitecture(collections.MutableSet):
|
class PackageArchitecture(collections.abc.MutableSet):
|
||||||
__slots__ = '_data'
|
__slots__ = '_data'
|
||||||
|
|
||||||
def __init__(self, value=None):
|
def __init__(self, value=None):
|
||||||
|
|
Loading…
Reference in New Issue