1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

TK Soh  committed 9557254

tracelog: fix hglib import issue

use hglib.toutf() to handle UTF-8 messages, if it's available.

  • Participants
  • Parent commits d3567aa
  • Branches default

Comments (0)

Files changed (1)

File tracelog.py

View file
 import Queue
 import win32trace
 
-from hglib import toutf
+try:
+    from hggtk.hglib import toutf
+except ImportError:
+    def toutf(s):
+        return s
 
 class TraceLog():
     def __init__(self):