From 8c75aa6373f8b640795bbc0e2fe7960c42bc0377 Mon Sep 17 00:00:00 2001 From: Michel Ferrero Date: Tue, 3 Jun 2014 15:08:24 +0200 Subject: [PATCH] Small fix in wrap_generator --- pytriqs/wrap_generator/wrap_generator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pytriqs/wrap_generator/wrap_generator.py b/pytriqs/wrap_generator/wrap_generator.py index ae2c1fe1..71bfc78d 100644 --- a/pytriqs/wrap_generator/wrap_generator.py +++ b/pytriqs/wrap_generator/wrap_generator.py @@ -498,7 +498,7 @@ class class_ : raise self.pure_python_methods[rename or name] = pure_pyfunction_from_module(name = name, module = module), 'module', process_doc(doc) elif callable(f) : - assert name == None + assert rename == None self.hidden_python_function[f.__name__] = f self.pure_python_methods[f.__name__] = f.__name__, 'inline', process_doc(f.__doc__) else : raise ValueError, "argument f must be callable or a string" @@ -692,9 +692,9 @@ class module_ : l = f.readline()[3:] # // strip "// " self._wrapped_types += eval(l) self.add_include(hppfile) - print "Loading triqs wrapped module %s"%modulename - print " ... found C++ header file %s"%hppfile - print " ... found wrapped types %s"%l + #print "Loading triqs wrapped module %s"%modulename + #print " ... found C++ header file %s"%hppfile + #print " ... found wrapped types %s"%l class _enum : def __init__(self, c_name, values, c_namespace, doc) :