Skip to content
Snippets Groups Projects
Commit 27e3b66e authored by durin42's avatar durin42
Browse files

dispatch: cope with sys.version being unicode on Python 3

parent 49ad6bf6
No related branches found
No related tags found
No related merge requests found
......@@ -893,7 +893,12 @@
bugtracker = _("https://mercurial-scm.org/wiki/BugTracker")
warning = (_("** unknown exception encountered, "
"please report by visiting\n** ") + bugtracker + '\n')
warning += ((_("** Python %s\n") % sys.version.replace('\n', '')) +
if pycompat.ispy3:
sysversion = sys.version.encode(u'utf-8')
else:
sysversion = sys.version
sysversion = sysversion.replace('\n', '')
warning += ((_("** Python %s\n") % sysversion) +
(_("** Mercurial Distributed SCM (version %s)\n") %
util.version()) +
(_("** Extensions loaded: %s\n") %
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment