patch[Partners] Unified fix of incorrect variable declarations in all check_imports (#25014)

There are some incorrect declarations of variable `has_failure` in
check_imports. The purpose of this PR is to uniformly fix these errors.
This commit is contained in:
ZhangShenao 2024-08-04 01:49:41 +08:00 committed by GitHub
parent 7de62abc91
commit 2c3e3dc6b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
16 changed files with 16 additions and 16 deletions

View File

@ -9,7 +9,7 @@ if __name__ == "__main__":
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file)
traceback.print_exc()
print()

View File

@ -9,7 +9,7 @@ if __name__ == "__main__":
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file) # noqa: T201
traceback.print_exc()
print() # noqa: T201

View File

@ -9,7 +9,7 @@ if __name__ == "__main__":
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file) # noqa: T201
traceback.print_exc()
print() # noqa: T201

View File

@ -11,7 +11,7 @@ if __name__ == "__main__":
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file)
traceback.print_exc()
print()

View File

@ -11,7 +11,7 @@ if __name__ == "__main__":
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file) # noqa: T201
traceback.print_exc()
print() # noqa: T201

View File

@ -9,7 +9,7 @@ if __name__ == "__main__":
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file) # noqa: T201
traceback.print_exc()
print() # noqa: T201

View File

@ -9,7 +9,7 @@ if __name__ == "__main__":
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file) # noqa: T201
traceback.print_exc()
print() # noqa: T201

View File

@ -9,7 +9,7 @@ if __name__ == "__main__":
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file)
traceback.print_exc()
print()

View File

@ -9,7 +9,7 @@ if __name__ == "__main__":
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file) # noqa: T201
traceback.print_exc()
print() # noqa: T201

View File

@ -9,7 +9,7 @@ if __name__ == "__main__":
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file)
traceback.print_exc()
print()

View File

@ -9,7 +9,7 @@ if __name__ == "__main__":
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file) # noqa: T201
traceback.print_exc()
print() # noqa: T201

View File

@ -9,7 +9,7 @@ if __name__ == "__main__":
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file) # noqa: T201
traceback.print_exc()
print() # noqa: T201

View File

@ -9,7 +9,7 @@ if __name__ == "__main__":
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file) # noqa: T201
traceback.print_exc()
print() # noqa: T201

View File

@ -9,7 +9,7 @@ if __name__ == "__main__":
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file)
traceback.print_exc()
print()

View File

@ -11,7 +11,7 @@ if __name__ == "__main__":
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file)
traceback.print_exc()
print()

View File

@ -9,7 +9,7 @@ if __name__ == "__main__":
try:
SourceFileLoader("x", file).load_module()
except Exception:
has_faillure = True
has_failure = True
print(file)
traceback.print_exc()
print()