Blame SOURCES/pygtk-nodisplay-exception.patch

46fe5f
--- pygtk-2.10.4/gtk/__init__.py.orig	2007-01-16 07:50:07.000000000 -0500
46fe5f
+++ pygtk-2.10.4/gtk/__init__.py	2007-02-05 17:09:37.000000000 -0500
46fe5f
@@ -59,19 +59,14 @@
46fe5f
 def _init():
46fe5f
     import sys
46fe5f
 
46fe5f
-    try:
46fe5f
-        sys_path = sys.path[:]
46fe5f
+    sys_path = sys.path[:]
46fe5f
 
46fe5f
-        try:
46fe5f
-            _gtk.init_check()
46fe5f
-        except RuntimeError, e:
46fe5f
-            import warnings
46fe5f
-            warnings.warn(str(e), _gtk.Warning)
46fe5f
-    finally:
46fe5f
-        # init_check calls PySys_SetArgv which calls sys.path.insert(0, ''),
46fe5f
-        # which causes problems for pychecker, restore it if modified.
46fe5f
-        if sys.path != sys_path:
46fe5f
-            sys.path[:] = sys_path
46fe5f
+    _gtk.init_check()
46fe5f
+
46fe5f
+    # init_check calls PySys_SetArgv which calls sys.path.insert(0, ''),
46fe5f
+    # which causes problems for pychecker, restore it if modified.
46fe5f
+    if sys.path != sys_path:
46fe5f
+        sys.path[:] = sys_path
46fe5f
 
46fe5f
     # install the default log handlers
46fe5f
     _gtk.add_log_handlers()