Commit 32af5cef authored by Ben Hutchings's avatar Ben Hutchings

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):
parent 5b89c319
......@@ -12,6 +12,8 @@ linux (4.19.12-2) UNRELEASED; urgency=medium
* [powerpc,powerpcspe,ppc64] linux-config: Eliminate config.*_bootwrapper.gz
files
* [powerpcspe] Fix -mcpu= options for SPE-only compiler
* debian/lib/python/debian_linux/debian.py: Fix deprecated import of
MutableSet
[ Salvatore Bonaccorso ]
* USB: hso: Fix OOB memory access in hso_probe/hso_get_config_data
......
import collections
import collections.abc
import os.path
import re
import unittest
......@@ -400,7 +401,7 @@ class _VersionLinuxTest(unittest.TestCase):
self.assertTrue(v.linux_revision_other)
class PackageArchitecture(collections.MutableSet):
class PackageArchitecture(collections.abc.MutableSet):
__slots__ = '_data'
def __init__(self, value=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment