fix: network property means any network reach, not only HTTP (#144)
CI / verify (push) Successful in 1m13s
Release / release (push) Successful in 35s

Files changed:
- CHANGES.md
- VERSION
- tools/CONTRACT.md
- tools/chemenu/cli_contract.py
- tools/chemenu/commands/git_publish.py
- tools/chemenu/commands/upstream_cmd.py
- tools/chemenu/commands/version_cmd.py
- tools/chemenu/tests/test_cli.py
- tools/chemenu/version.py
This commit is contained in:
torben committed 2026-09-26 15:19:58 +02:00
1 parent 16c911fca5
commit 906d63fae2
9 files changed
+86 -24

No files matched your search

+7 -7
View File
@@ -348,13 +348,13 @@ def fetch_latest(
"""The version the release feed reports as latest.
The network call sits behind `fetcher` so every caller above this line -
and every test - can run without a network. This is the one place in
`wikitool` that talks to a remote host, and only two commands reach it:
`version check`, whose whole job it is, and `version notes` on a
*distributed* instance, whose local `CHANGES.md` is a stub with no entry to
print (see `fetch_latest_notes`). Neither is implicit - `check` exists for
the call, and `notes` announces the URL it is asking before it asks, on
stderr, and takes `--offline` for a caller that wants none of it.
and every test - can run without a network. This is the one place that
talks to the **release feed**, and only two commands reach it: `version
check`, whose whole job it is, and `version notes` on a *distributed*
instance, whose local `CHANGES.md` is a stub with no entry to print (see
`fetch_latest_notes`). Neither is implicit - `check` exists for the call,
and `notes` announces the URL it is asking before it asks, on stderr, and
takes `--offline` for a caller that wants none of it.
"""
fetch = fetcher or _urlopen_fetch
try: