home
·
contact
·
privacy
projects
/
ircplom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a807610
)
In MsgParseGuides, allow empty-string path steps.
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 22 Sep 2025 07:08:38 +0000
(09:08 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 22 Sep 2025 07:08:38 +0000
(09:08 +0200)
ircplom/msg_parse_expectations.py
patch
|
blob
|
history
diff --git
a/ircplom/msg_parse_expectations.py
b/ircplom/msg_parse_expectations.py
index dd39bd7b75e105a537e7c622e0547de239e7432c..2bb1857b859abcd8cd7e71c94b2dde0b8c29af6b 100644
(file)
--- a/
ircplom/msg_parse_expectations.py
+++ b/
ircplom/msg_parse_expectations.py
@@
-26,7
+26,8
@@
class _Command(NamedTuple):
def from_(cls, input_: str) -> Self:
'Split by first "_" into verb, path (split into steps tuple by ".").'
verb, path_str = input_.split('_', maxsplit=1)
- return cls(verb, tuple(step for step in path_str.split('.') if step))
+ return cls(verb, tuple(step for step in path_str.split('.')
+ if path_str))
class _MsgParseExpectation: