# HG changeset patch
# User Simon Heimberg <[email protected]>
# Date 1249307115 -7200
# Node ID 1e86b664098740ba0fb91fcf64e89ec852248879
# Parent  0453575432beff8263990edb87f58bb836138ef2
thgconfig: check import error without disabling demandimport

diff -r 0453575432be -r 1e86b6640987 hggtk/thgconfig.py
--- a/hggtk/thgconfig.py        Mit Jul 22 16:41:23 2009 +0200
+++ b/hggtk/thgconfig.py        Mon Aug 03 15:45:15 2009 +0200
@@ -440,10 +440,8 @@
                 return
 
         try:
-            from mercurial import demandimport
-            demandimport.disable()
             import iniparse
-            demandimport.enable()
+            iniparse.INIConfig
         except ImportError:
             dialog.error_dialog(self, _('Iniparse package not found'),
                          _('Please install iniparse package'))

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to