changeset 19298:6cd8403e070f

color: use pythons isinstance method instead of reprogramming it
author Simon Heimberg <simohe@besonet.ch>
date Wed, 05 Jun 2013 22:06:16 +0200
parents 8ddc3cd962ba
children cdc612db2ffb
files hgext/color.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/color.py	Wed Jun 05 22:06:02 2013 +0200
+++ b/hgext/color.py	Wed Jun 05 22:06:16 2013 +0200
@@ -400,7 +400,7 @@
 def uisetup(ui):
     if ui.plain():
         return
-    if not issubclass(ui.__class__, colorui):
+    if not isinstance(ui, colorui):
         colorui.__bases__ = (ui.__class__,)
         ui.__class__ = colorui
     def colorcmd(orig, ui_, opts, cmd, cmdfunc):