From eff4960d941b51629f8378b1bd9498ed2aec92c7 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Wed, 8 May 2019 16:48:24 +0100 Subject: [PATCH] Fix Python 3.7 collections.abc DeprecationWarning Should fix this ``` /.../bin/bottle.py:87: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it wil l stop working from collections import MutableMapping as DictMixin ``` --- bottle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bottle.py b/bottle.py index 3a51b38..f8398f1 100644 --- a/bottle.py +++ b/bottle.py @@ -84,7 +84,7 @@ if py3k: from urllib.parse import urlencode, quote as urlquote, unquote as urlunquote urlunquote = functools.partial(urlunquote, encoding='latin1') from http.cookies import SimpleCookie - from collections import MutableMapping as DictMixin + from collections.abc import MutableMapping as DictMixin import pickle from io import BytesIO from configparser import ConfigParser