mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
Fix imports from collections.abc
This commit is contained in:
parent
bd475115c4
commit
57d1a887e7
7 changed files with 22 additions and 20 deletions
|
@ -15,7 +15,7 @@ import shutil
|
|||
import warnings
|
||||
import unittest
|
||||
import importlib
|
||||
import collections
|
||||
import collections.abc
|
||||
import re
|
||||
import subprocess
|
||||
import imp
|
||||
|
@ -682,7 +682,7 @@ class CleanImport(object):
|
|||
sys.modules.update(self.original_modules)
|
||||
|
||||
|
||||
class EnvironmentVarGuard(collections.MutableMapping):
|
||||
class EnvironmentVarGuard(collections.abc.MutableMapping):
|
||||
|
||||
"""Class to help protect the environment variable properly. Can be used as
|
||||
a context manager."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue