16 lines
697 B
Diff
16 lines
697 B
Diff
|
|
diff -Nur a/pympler/util/bottle.py b/pympler/util/bottle.py
|
||
|
|
--- a/pympler/util/bottle.py 2019-04-07 00:39:01.308185000 +0800
|
||
|
|
+++ b/pympler/util/bottle.py 2022-05-17 10:10:10.356385260 +0800
|
||
|
|
@@ -84,7 +84,10 @@
|
||
|
|
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
|
||
|
|
+ try:
|
||
|
|
+ from collections.abc import MutableMapping as DictMixin
|
||
|
|
+ except:
|
||
|
|
+ from collections import MutableMapping as DictMixin
|
||
|
|
import pickle
|
||
|
|
from io import BytesIO
|
||
|
|
from configparser import ConfigParser
|