|
18 | 18 | """
|
19 | 19 | from __future__ import absolute_import
|
20 | 20 | import six
|
21 |
| -from six.moves import zip |
22 | 21 |
|
23 | 22 | __author__ = "[email protected] (Joe Gregorio)"
|
24 | 23 | __all__ = ["build", "build_from_document", "fix_method_name", "key2param"]
|
25 | 24 |
|
26 |
| -from six import BytesIO |
27 | 25 | from six.moves import http_client
|
28 |
| -from six.moves.urllib.parse import urlencode, urlparse, urljoin, urlunparse, parse_qsl |
| 26 | +from six.moves.urllib.parse import urljoin |
| 27 | + |
29 | 28 |
|
30 | 29 | # Standard library imports
|
31 | 30 | import copy
|
@@ -1145,7 +1144,7 @@ def method(self, **kwargs):
|
1145 | 1144 | msgRoot.attach(msg)
|
1146 | 1145 | # encode the body: note that we can't use `as_string`, because
|
1147 | 1146 | # it plays games with `From ` lines.
|
1148 |
| - fp = BytesIO() |
| 1147 | + fp = six.BytesIO() |
1149 | 1148 | g = _BytesGenerator(fp, mangle_from_=False)
|
1150 | 1149 | g.flatten(msgRoot, unixfrom=False)
|
1151 | 1150 | body = fp.getvalue()
|
@@ -1219,7 +1218,7 @@ def method(self, **kwargs):
|
1219 | 1218 | enumDesc = paramdesc.get("enumDescriptions", [])
|
1220 | 1219 | if enum and enumDesc:
|
1221 | 1220 | docs.append(" Allowed values\n")
|
1222 |
| - for (name, desc) in zip(enum, enumDesc): |
| 1221 | + for (name, desc) in six.moves.zip(enum, enumDesc): |
1223 | 1222 | docs.append(" %s - %s\n" % (name, desc))
|
1224 | 1223 | if "response" in methodDesc:
|
1225 | 1224 | if methodName.endswith("_media"):
|
|
0 commit comments