patch for the bug (hgview_curses_vs_urwid.diff)

Here is a patch for the bug: instead of complicated map(int, .. split),
I just use lexical string comparision order (I can see no reason to mistrust it)

download
# HG changeset patch
# User "Emile Anclin" <emile.anclin@laposte.net>
# Parent 385a78f8e369687b461cf9fe017851aad8a22db1
[curses] fix broken urwid version check (closes #259133)

diff -r 385a78f8e369 hgviewlib/curses/application.py
--- a/hgviewlib/curses/application.py	Fri Jan 31 11:36:52 2014 -0800
+++ b/hgviewlib/curses/application.py	Mon Jul 28 23:51:28 2014 +0200
@@ -59,10 +59,10 @@
     def get_screen(self):
         """return the screen instance to use"""
         if self.opts.interface == 'curses' and \
-            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.'
-                                   'Use the"raw" interface' %
+            URWID_VERSION < '1.0.0':
+            raise ApplicationError('The "curses" interface can not be used '
+                                   'with old urwid version %s < 1.0.0.'
+                                   'Use the "raw" interface' %
                                    URWID_VERSION)
         if self.opts.interface == 'raw':
             from urwid.raw_display import Screen