Closed spaceone closed 1 year ago
pyupgrade only rewrites six as-import partly
-from six.moves import http_client as httplib, urllib_error, urllib_request as urllib2 +from six.moves import urllib_error, urllib_request as urllib2 +from http import client as httplib
expected:
-from six.moves import http_client as httplib, urllib_error, urllib_request as urllib2 +from urllib import error as urllib_error, +from urllib import request as urllib2 +from http import client as httplib
there's no urllib_error exact replacement so it cannot be done safely without introducing as. this is intentional as introducing as is kind of ugly and doesn't make the code better just different
urllib_error
as
pyupgrade only rewrites six as-import partly
expected: