From 47cb6bac455e97f38ea509d4b76317a1924c4846 Mon Sep 17 00:00:00 2001 From: ROUVREAU Vincent Date: Tue, 10 Sep 2019 16:35:02 +0200 Subject: Rename private variables as some of them are reserved --- src/python/gudhi/__init__.py.in | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/python/gudhi/__init__.py.in b/src/python/gudhi/__init__.py.in index 947aa3c9..28bab0e1 100644 --- a/src/python/gudhi/__init__.py.in +++ b/src/python/gudhi/__init__.py.in @@ -23,18 +23,18 @@ from importlib import import_module __all__ = [@GUDHI_PYTHON_MODULES@] -__available_modules__ = '' -__missing_modules__ = '' +__available_modules = '' +__missing_modules = '' -# try to import * from gudhi.__module_name__ -for __module_name__ in __all__: +# try to import * from gudhi.__module_name +for __module_name in __all__: try: - __module__ = import_module('gudhi.' + __module_name__) + __module = import_module('gudhi.' + __module_name) try: - __to_import__ = __module__.__all__ + __to_import = __module.__all__ except AttributeError: - __to_import__ = [name for name in __module__.__dict__ if not name.startswith('_')] - globals().update({name: __module__.__dict__[name] for name in __to_import__}) - __available_modules__ += __module_name__ + ";" + __to_import = [name for name in __module.__dict__ if not name.startswith('_')] + globals().update({name: __module.__dict__[name] for name in __to_import}) + __available_modules += __module_name + ";" except: - __missing_modules__ += __module_name__ + ";" + __missing_modules += __module_name + ";" -- cgit v1.2.3