##// END OF EJS Templates
dispatch: cope with sys.version being unicode on Python 3
Augie Fackler -
r31180:27e3b66e default
parent child Browse files
Show More
@@ -893,7 +893,12 b' def _exceptionwarning(ui):'
893 893 bugtracker = _("https://mercurial-scm.org/wiki/BugTracker")
894 894 warning = (_("** unknown exception encountered, "
895 895 "please report by visiting\n** ") + bugtracker + '\n')
896 warning += ((_("** Python %s\n") % sys.version.replace('\n', '')) +
896 if pycompat.ispy3:
897 sysversion = sys.version.encode(u'utf-8')
898 else:
899 sysversion = sys.version
900 sysversion = sysversion.replace('\n', '')
901 warning += ((_("** Python %s\n") % sysversion) +
897 902 (_("** Mercurial Distributed SCM (version %s)\n") %
898 903 util.version()) +
899 904 (_("** Extensions loaded: %s\n") %
General Comments 0
You need to be logged in to leave comments. Login now