We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ae678b commit cbb55b3Copy full SHA for cbb55b3
qiniu/compat.py
@@ -36,9 +36,7 @@
36
from urllib import urlencode # noqa
37
from urlparse import urlparse # noqa
38
import StringIO
39
- import enum34
40
StringIO = BytesIO = StringIO.StringIO
41
- Enum = enum34.Enum
42
43
builtin_str = str
44
bytes = str
@@ -65,10 +63,8 @@ def is_seekable(data):
65
63
elif is_py3:
66
64
from urllib.parse import urlparse, urlencode # noqa
67
import io
68
- import enum
69
StringIO = io.StringIO
70
BytesIO = io.BytesIO
71
- Enum = enum.Enum
72
73
74
str = str
qiniu/http/region.py
@@ -1,6 +1,6 @@
1
from datetime import datetime, timedelta
2
3
-from qiniu.compat import Enum
+from enum import Enum
4
5
from .endpoint import Endpoint
6
0 commit comments