Skip to content

Commit 5fd5ad0

Browse files
Daniel A. Wozniakdwoz
authored andcommitted
Replace U+2192 arrows in resources framework docstrings
salt/minion.py:_collect_resource_grains and salt/utils/resource_registry.py:parse_srn / _ResourceIndexStore had "->" rendered as the Unicode arrow U+2192 ("->"), which doesn't encode to Windows cp1252. Caught by the existing check_cp1252_docstrings hook on the post-rebase pre-commit run. Same precedent and sweep as commit history "Replace cp1252- incompatible chars in docstrings" -- ASCII "->" is the agreed substitute.
1 parent 3461a71 commit 5fd5ad0

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

salt/minion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3587,7 +3587,7 @@ def _collect_resource_grains(self):
35873587
For each ``(resource_type, resource_id)`` pair, sets the per-call
35883588
:data:`salt.loader.context.resource_ctxvar` and invokes
35893589
``resource_funcs[f"{type}.grains"]()``. Returns a mapping keyed by
3590-
composite SRN ``"<type>:<id>"`` grain dict, suitable for shipping
3590+
composite SRN ``"<type>:<id>"`` -> grain dict, suitable for shipping
35913591
to the master in :meth:`_register_resources_with_master`.
35923592
35933593
Resource types without a ``grains`` callable are skipped silently.

salt/utils/resource_registry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ def parse_srn(expression):
154154
A full Salt Resource Name (SRN) has the form ``<type>:<id>``. A bare
155155
expression contains only a type with no colon.
156156
157-
``parse_srn("vcf_host")`` ``{"type": "vcf_host", "id": None}``
158-
``parse_srn("vcf_host:esxi-01")`` ``{"type": "vcf_host", "id": "esxi-01"}``
157+
``parse_srn("vcf_host")`` -> ``{"type": "vcf_host", "id": None}``
158+
``parse_srn("vcf_host:esxi-01")`` -> ``{"type": "vcf_host", "id": "esxi-01"}``
159159
160160
:param str expression: A bare resource type or a full SRN.
161161
:rtype: dict
@@ -242,7 +242,7 @@ class _ResourceIndexStore:
242242
— writers bump the file's ``mtime`` on every ``put``/``delete`` (see
243243
:meth:`MmapCache._touch_mtime`), so the signal catches both:
244244
245-
* compactions (``os.replace`` new inode), and
245+
* compactions (``os.replace`` -> new inode), and
246246
* in-place mutations from other worker processes (same inode, fresh mtime).
247247
248248
Rebuilds are serialised under an internal lock so concurrent readers

0 commit comments

Comments
 (0)