Collector: machine number identifies the machine, not the PC; ntlars empty-value fix

This commit is contained in:
2026-08-10 14:26:19 -04:00
parent 41a4a96f1e
commit 502728c9f6
5 changed files with 431 additions and 6 deletions

View File

@@ -149,6 +149,13 @@ def _parsevalue(body):
return _parsehexvalue(body)
if body == '-':
return 'DELETE', None
if body == '':
# "Name=" with nothing after the sign. Not strictly legal, but it
# occurs in real exports (the part marker's WJPRT.reg has KRelay1 like
# this), and failing the whole file over it would mean that machine can
# never be backed up. Treat it as an empty string so the value NAME is
# still preserved.
return 'REG_SZ', ''
raise NtlarsParseError('unrecognised value form: {!r}'.format(body))