@@ -403,20 +403,6 @@ def get_toolchain_hierarchy(parent_toolchain, incl_capabilities=False):
403403 return toolchain_hierarchy
404404
405405
406- @contextmanager
407- def disable_templating (ec ):
408- """Temporarily disable templating on the given EasyConfig
409-
410- Usage:
411- with disable_templating(ec):
412- # Do what you want without templating
413- # Templating set to previous value
414- """
415- _log .deprecated ("disable_templating(ec) was replaced by ec.disable_templating()" , '5.0' )
416- with ec .disable_templating () as old_value :
417- yield old_value
418-
419-
420406class EasyConfig (object ):
421407 """
422408 Class which handles loading, reading, validation of easyconfigs
@@ -1860,19 +1846,10 @@ def det_installversion(version, toolchain_name, toolchain_version, prefix, suffi
18601846 _log .nosupport ('Use det_full_ec_version from easybuild.tools.module_generator instead of %s' % old_fn , '2.0' )
18611847
18621848
1863- def get_easyblock_class (easyblock , name = None , error_on_failed_import = True , error_on_missing_easyblock = None , ** kwargs ):
1849+ def get_easyblock_class (easyblock , name = None , error_on_failed_import = True , error_on_missing_easyblock = True , ** kwargs ):
18641850 """
18651851 Get class for a particular easyblock (or use default)
18661852 """
1867- if 'default_fallback' in kwargs :
1868- msg = "Named argument 'default_fallback' for get_easyblock_class is deprecated, "
1869- msg += "use 'error_on_missing_easyblock' instead"
1870- _log .deprecated (msg , '4.0' )
1871- if error_on_missing_easyblock is None :
1872- error_on_missing_easyblock = kwargs ['default_fallback' ]
1873- elif error_on_missing_easyblock is None :
1874- error_on_missing_easyblock = True
1875-
18761853 cls = None
18771854 try :
18781855 if easyblock :
0 commit comments