Patch (patch.txt)

The same patch as attachment (btw, could you describe somewhere what is natural way of adding patches to bugs?)

download

diff --git a/hgviewlib/curses/application.py b/hgviewlib/curses/application.py
--- a/hgviewlib/curses/application.py
+++ b/hgviewlib/curses/application.py
@@ -59,9 +59,9 @@
def get_screen(self):
"""return the screen instance to use"""
if self.opts.interface == 'curses' and \
- map(int, URWID_VERSION.split('.')) < (1,0,0):
+ tuple(map(int, URWID_VERSION.split('.'))) < (1,0,0):
raise ApplicationError('The "curses" interface could not be use '
- 'with old urwid version ()%s < 1.0.0.'
+ 'with old urwid version (%s < 1.0.0).'
'Use the"raw" interface' %
URWID_VERSION)
if self.opts.interface == 'raw':