diff options
Diffstat (limited to 'community/py3-colorclass/python3.9.patch')
-rw-r--r-- | community/py3-colorclass/python3.9.patch | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/community/py3-colorclass/python3.9.patch b/community/py3-colorclass/python3.9.patch deleted file mode 100644 index 70f1194fd32..00000000000 --- a/community/py3-colorclass/python3.9.patch +++ /dev/null @@ -1,26 +0,0 @@ -commit f8bbe9fdcff1d97b1d0e5dcb94680923cc43a507 -Author: Ralph Broenink <ralph@ralphbroenink.net> -Date: Mon Aug 24 14:49:24 2020 +0200 - - Make code forwards-compatible with Python 3.9 - - Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working - -diff --git a/colorclass/codes.py b/colorclass/codes.py -index b0ecb03..8b6085d 100644 ---- a/colorclass/codes.py -+++ b/colorclass/codes.py -@@ -1,7 +1,12 @@ - """Handles mapping between color names and ANSI codes and determining auto color codes.""" - - import sys --from collections import Mapping -+try: -+ # Using or importing the ABCs from 'collections' instead of from 'collections.abc' is -+ # deprecated since Python 3.3, and in 3.9 it will stop working -+ from collections.abc import Mapping -+except ImportError: -+ from collections import Mapping - - BASE_CODES = { - '/all': 0, 'b': 1, 'f': 2, 'i': 3, 'u': 4, 'flash': 5, 'outline': 6, 'negative': 7, 'invis': 8, 'strike': 9, |