$OpenBSD: patch-hgviewlib_curses_application_py,v 1.1.1.1 2014/05/01 08:48:19 edd Exp $

Detect urwid properly. From here:
https://www.logilab.org/ticket/182147

--- hgviewlib/curses/application.py.orig	Fri Jan 31 19:40:05 2014
+++ hgviewlib/curses/application.py	Mon Feb  3 14:30:28 2014
@@ -59,9 +59,9 @@ class HgViewUrwidApplication(HgViewApplication):
     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':
