Add YAPF style + ignore, and format tracked Python files
This commit is contained in:
@@ -102,8 +102,11 @@ def check_urllib3_compat() -> Tuple[bool, str]:
|
||||
# Looks good
|
||||
debug(
|
||||
"urllib3 appears usable: version=%s, exceptions=%s",
|
||||
getattr(urllib3, "__version__", "<unknown>"),
|
||||
hasattr(urllib3, "exceptions"),
|
||||
getattr(urllib3,
|
||||
"__version__",
|
||||
"<unknown>"),
|
||||
hasattr(urllib3,
|
||||
"exceptions"),
|
||||
)
|
||||
return True, "OK"
|
||||
|
||||
@@ -129,7 +132,9 @@ def ensure_urllib3_ok(exit_on_error: bool = True) -> bool:
|
||||
log(border)
|
||||
|
||||
if exit_on_error:
|
||||
log("Please follow the steps above to fix your environment, then re-run this command.")
|
||||
log(
|
||||
"Please follow the steps above to fix your environment, then re-run this command."
|
||||
)
|
||||
try:
|
||||
sys.exit(2)
|
||||
except SystemExit:
|
||||
|
||||
Reference in New Issue
Block a user