[Updated] D11303: zeroconf: fix an issue concatenating bytes and str

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Wed Aug 25 10:08:21 UTC 2021


Closed by commit rHG66f720b3dd98: zeroconf: fix an issue concatenating bytes and str (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11303?vs=29930&id=30011

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11303/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D11303

AFFECTED FILES
  hgext/zeroconf/Zeroconf.py

CHANGE DETAILS

diff --git a/hgext/zeroconf/Zeroconf.py b/hgext/zeroconf/Zeroconf.py
--- a/hgext/zeroconf/Zeroconf.py
+++ b/hgext/zeroconf/Zeroconf.py
@@ -770,7 +770,7 @@
 
     def writeString(self, value, length):
         """Writes a string to the packet"""
-        format = b'!' + str(length) + b's'
+        format = '!' + str(length) + 's'
         self.data.append(struct.pack(format, value))
         self.size += length
 



To: mharbison72, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210825/e971512c/attachment-0002.html>


More information about the Mercurial-patches mailing list