[PATCH] Fix: prevent gobject._gobject demandimport crash (issue2502)

Alan Franzoni username at franzoni.eu
Wed Nov 17 04:10:11 CST 2010


# HG changeset patch
# User Alan Franzoni <username at franzoni.eu>
# Date 1289988496 -3600
# Node ID ed1bab17051b3490704a53cfe47bd9ed64b860ca
# Parent  cc4e13c92dfa441c735e3b383fa6ac6c071884ae
Fix: prevent gobject._gobject demandimport crash (issue2502)

gobject._gobject should be excluded from demandimport to prevent random
crashes in applications using it.

diff -r cc4e13c92dfa -r ed1bab17051b mercurial/demandimport.py
--- a/mercurial/demandimport.py	Mon Nov 15 17:05:54 2010 -0600
+++ b/mercurial/demandimport.py	Wed Nov 17 11:08:16 2010 +0100
@@ -134,6 +134,7 @@
     # raise ImportError if x not defined
     '__main__',
     '_ssl', # conditional imports in the stdlib, issue1964
+    'gobject._gobject',
     ]
 
 def enable():


More information about the Mercurial-devel mailing list