changeset 6212:963c2cf38a9a

Silence python-2 parent module warning.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Tue, 28 Aug 2012 23:04:37 +0200
parents 37158d8bead6
children 206b4eb30ef6
files gub/dependency.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gub/dependency.py	Tue Aug 28 19:01:24 2012 +0200
+++ b/gub/dependency.py	Tue Aug 28 23:04:37 2012 +0200
@@ -1,5 +1,6 @@
 import new
 import os
+import warnings
 #
 from gub.syntax import printf
 from gub import cross
@@ -19,6 +20,7 @@
     # overwriting the PYTHON. namespace from gub/specs/python.py
     # Current workaround: always/also use __darwin etc. postfixing
     # of class names, also in specs/darwin/ etc.
+    warnings.filterwarnings ('ignore', '''Parent module 'python-2' ''')
     module = misc.load_module (file_name, name)
     # cross/gcc.py:Gcc will be called: cross/Gcc.py,
     # to distinguish from specs/gcc.py:Gcc.py