You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
double imported on noxfile.py by double imported of os
module on googleapiclient//discovery.py with module six is imported with both import and import from
unused module imported from six.moves.urllib.parse import urlencode, urlparse, urljoin, urlunparse, parse_qsl on discovery.py
steps to fixing the problem by:
remove one of module of os
commented from six.moves import zip and change code zip(enum, enumDesc): to six.moves.zip(enum, enumDesc):
commented unused imported urlencode,urlparse,urljoin,urlunparse,parse_qsl and adding code to used imported code urljoin to from six.moves.urllib.parse import urljoin
sample code
from __future__ importabsolute_importimportsix# from six.moves import zip__author__="jcgregorio@google.com (Joe Gregorio)"__all__= ["build", "build_from_document", "fix_method_name", "key2param"]
fromsiximportBytesIOfromsix.movesimporthttp_client# from six.moves.urllib.parse import urlencode, urlparse, urljoin, urlunparse, parse_qslfromsix.moves.urllib.parseimporturljoin
The text was updated successfully, but these errors were encountered:
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/google-api-python-client/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- [x] Ensure the tests and linter pass
- [x] Code coverage does not decrease (if any source code was changed)
- [x] Appropriate docs were updated (if necessary)
Fixes#1436 🦕
maybe problems on google-api-python-client which:
noxfile.py
by double imported ofos
googleapiclient//discovery.py
with modulesix
is imported with both import and import fromfrom six.moves.urllib.parse import urlencode, urlparse, urljoin, urlunparse, parse_qsl
ondiscovery.py
steps to fixing the problem by:
os
from six.moves import zip
and change codezip(enum, enumDesc):
tosix.moves.zip(enum, enumDesc):
urlencode
,urlparse
,urljoin
,urlunparse
,parse_qsl
and adding code to used imported codeurljoin
tofrom six.moves.urllib.parse import urljoin
sample code
The text was updated successfully, but these errors were encountered: