tweak stdlib imports to follow Google style guide
Google Python style guide says to import modules. Clean up all our stdlib imports. Leave the repo ones alone for now as that's a much bigger shave. Change-Id: Ida42fc2ae78b86e6b7a6cbc98f94ca04b295f8cc Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/383714 Reviewed-by: Gavin Mak <gavinmak@google.com> Commit-Queue: Mike Frysinger <vapier@google.com> Tested-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
parent
16109a66b7
commit
06ddc8c50a
8 changed files with 24 additions and 20 deletions
|
@ -15,7 +15,7 @@
|
|||
import contextlib
|
||||
import datetime
|
||||
import errno
|
||||
from http.client import HTTPException
|
||||
import http.client
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
|
@ -650,7 +650,7 @@ class Remote(object):
|
|||
raise UploadError("%s: %s" % (self.review, str(e)))
|
||||
except urllib.error.URLError as e:
|
||||
raise UploadError("%s: %s" % (self.review, str(e)))
|
||||
except HTTPException as e:
|
||||
except http.client.HTTPException as e:
|
||||
raise UploadError(
|
||||
"%s: %s" % (self.review, e.__class__.__name__)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue