This commit is contained in:
Mateusz Gruszczyński committed 2026-11-28 17:36:53 +01:00
1 parent 5b6d4a7903
commit 4d1087e357
160 files changed
+2407 -1933

No files matched your search

+1 -6
View File
@@ -15,7 +15,7 @@ class RustProxyClient:
handlers: list[Any] = [urllib.request.HTTPCookieProcessor(jar)]
if parsed.scheme == "https":
if insecure_tls:
context = ssl._create_unverified_context() # Explicit operator opt-in for local/self-signed admin TLS.
context = ssl._create_unverified_context()
else:
context = ssl.create_default_context(cafile=str(ca_file) if ca_file else None)
handlers.append(urllib.request.HTTPSHandler(context=context))
@@ -71,8 +71,6 @@ class RustProxyClient:
raise MigrationError("unexpected RustProxy PUT /api/config response")
return value
def write_private_json(path: Path, value: dict[str, Any]) -> None:
path = path.expanduser()
path.parent.mkdir(parents=True, exist_ok=True)
@@ -103,7 +101,6 @@ def split_ids(values: list[str] | None) -> list[str] | None:
out.append(item)
return out
def print_report(decisions: list[Decision]) -> None:
imported = sum(1 for d in decisions if d.action == "import")
skipped = sum(1 for d in decisions if d.action == "skip")
@@ -120,5 +117,3 @@ def print_report(decisions: list[Decision]) -> None:
print(" reason: " + decision.reason)
for warning in decision.warnings or []:
print(" warning: " + warning)