D4218: mail: fix debug print, which appears to have been broken for a long time

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Aug 9 23:03:54 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG713126389ef2: mail: fix debug print, which appears to have been broken for a long time (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4218?vs=10212&id=10250

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

AFFECTED FILES
  mercurial/mail.py

CHANGE DETAILS

diff --git a/mercurial/mail.py b/mercurial/mail.py
--- a/mercurial/mail.py
+++ b/mercurial/mail.py
@@ -73,7 +73,7 @@
 
     def _get_socket(self, host, port, timeout):
         if self.debuglevel > 0:
-            self._ui.debug('connect: %r\n' % (host, port))
+            self._ui.debug('connect: %r\n' % ((host, port),))
         new_socket = socket.create_connection((host, port), timeout)
         new_socket = sslutil.wrapsocket(new_socket,
                                         self.keyfile, self.certfile,



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list