X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/1fbf854ce423d2d56723ff10608267403f4916b0..1008d03092997eabd2d028a1e267a8b3ab145ceb:/lib/vstorage/hgui.py?ds=sidebyside diff --git a/lib/vstorage/hgui.py b/lib/vstorage/hgui.py index 36c6e230..f84f5fb4 100644 --- a/lib/vstorage/hgui.py +++ b/lib/vstorage/hgui.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Mercurial ui module replacement. """ @@ -5,6 +6,7 @@ import mercurial.ui import logging + class SilentUI(mercurial.ui.ui): def __init__(self, *args, **kwargs): @@ -51,7 +53,8 @@ class SilentUI(mercurial.ui.ui): return text def traceback(self, exc=None): - if exc is not None: self.__logger.exception() + if exc is not None: + self.__logger.exception() def progress(self, *args, **kwargs): pass