Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit e8299c0

Browse filesBrowse files
committed
Fix DNSText repr Python 3 issue
Prevents following exception: ``` File "/Users/paulus/dev/python/netdisco/lib/python3.4/site-packages/zeroconf.py", line 412, in __repr__ return self.to_string(self.text[:7] + "...") TypeError: can't concat bytes to str ```
1 parent d1ee5ce commit e8299c0
Copy full SHA for e8299c0

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎zeroconf.py

Copy file name to clipboardExpand all lines: zeroconf.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def __eq__(self, other):
409409
def __repr__(self):
410410
"""String representation"""
411411
if len(self.text) > 10:
412-
return self.to_string(self.text[:7] + "...")
412+
return self.to_string(self.text[:7]) + "..."
413413
else:
414414
return self.to_string(self.text)
415415

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.