Skip to content

feat: optimize unpacking properties in ServiceInfo - #1225

Merged
bdraco merged 1 commit into
masterfrom
unpack_properties
Aug 15, 2023
Merged

feat: optimize unpacking properties in ServiceInfo#1225
bdraco merged 1 commit into
masterfrom
unpack_properties

Conversation

@bdraco

@bdraco bdraco commented Aug 15, 2023

Copy link
Copy Markdown
Member

No description provided.

@codecov

codecov Bot commented Aug 15, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.32% 🎉

Comparison is base (ceb92cf) 99.49% compared to head (9000c69) 99.82%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1225      +/-   ##
==========================================
+ Coverage   99.49%   99.82%   +0.32%     
==========================================
  Files          25       25              
  Lines        2794     2790       -4     
  Branches      480      479       -1     
==========================================
+ Hits         2780     2785       +5     
+ Misses          8        3       -5     
+ Partials        6        2       -4     
Files Changed Coverage Δ
src/zeroconf/__init__.py 100.00% <100.00%> (ø)
src/zeroconf/_services/info.py 100.00% <100.00%> (ø)

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bdraco
bdraco marked this pull request as ready for review August 15, 2023 20:07
@bdraco
bdraco merged commit 1492e41 into master Aug 15, 2023
@bdraco
bdraco deleted the unpack_properties branch August 15, 2023 20:07
bboe added a commit to bboe/python-zeroconf that referenced this pull request Aug 12, 2026
RFC 6763 6.4: a key with no '=' is a boolean attribute; `key=` is present
with an empty value. Collapsing both to None makes them indistinguishable,
so a received `key=` re-encodes as a bare `key`.

Regression in python-zeroconf#1225 (first released in 0.80.0), which replaced explicit
branching on the separator with `value or None`. Restores the behaviour
python-zeroconf#226 introduced.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant