refactor(core)!: drop leading underscores from internal definitions

Renames 314 defs and 41 module/class-level constants. Keeps 11 names underscored where the stripped form collides in scope, plus 5.5.0 shims for the three symbols external service repos call.
This commit is contained in:
imSp4rky
2026-08-15 22:07:41 -06:00
parent db4f0b39f9
commit 21d5f1c5e1
116 changed files with 1671 additions and 1492 deletions
+4 -4
View File
@@ -5,7 +5,7 @@ import threading
import pytest
import requests as rq
from unshackle.core.downloaders.requests import _is_content_encoded, download
from unshackle.core.downloaders.requests import download, is_content_encoded
@pytest.mark.parametrize(
@@ -34,7 +34,7 @@ from unshackle.core.downloaders.requests import _is_content_encoded, download
],
)
def test_is_content_encoded(value, expected):
assert _is_content_encoded(value) is expected
assert is_content_encoded(value) is expected
PLAIN = b"WEBVTT\n\n" + b"".join(f"{i:05d} cue text\n".encode() for i in range(2000))
@@ -50,9 +50,9 @@ class _EncodingServer:
self.sock.bind(("127.0.0.1", 0))
self.sock.listen(8)
self.url = f"http://127.0.0.1:{self.sock.getsockname()[1]}/sub.vtt"
threading.Thread(target=self._serve, daemon=True).start()
threading.Thread(target=self.serve, daemon=True).start()
def _serve(self):
def serve(self):
while True:
try:
conn, _ = self.sock.accept()