summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2019-05-08 16:48:24 +0100
committerMarcel Hellkamp <marc@gsites.de>2019-07-10 10:29:35 +0200
commiteff4960d941b51629f8378b1bd9498ed2aec92c7 (patch)
tree0632ad0d3a0bb0eecf2c9bda47a6826bea11f280
parenta454029f6e8a087e5cb570eb6ee36c2087d26e4d (diff)
downloadbottle-eff4960d941b51629f8378b1bd9498ed2aec92c7.tar.gz
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 will stop working from collections import MutableMapping as DictMixin ```
-rwxr-xr-xbottle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bottle.py b/bottle.py
index 0b22f2e..d84c7b0 100755
--- a/bottle.py
+++ b/bottle.py
@@ -129,7 +129,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, Morsel, CookieError
- from collections import MutableMapping as DictMixin
+ from collections.abc import MutableMapping as DictMixin
import pickle
from io import BytesIO
import configparser