diff --git a/SCons/Environment.py b/SCons/Environment.py index 07276b04e..7ba910edc 100644 --- a/SCons/Environment.py +++ b/SCons/Environment.py @@ -1304,7 +1304,7 @@ def __getattr__(self, name): other parts of SCons depend on seeing the :exc:`AttributeError` that triggers this call, so all we do is produce our own message. - .. versioniadded:: NEXT_RELEASE + .. versionadded:: NEXT_RELEASE """ raise AttributeError( f"Builder or other environment method {name!r} not found.\n" @@ -1319,8 +1319,7 @@ def __getattr__(self, name): ####################################################################### def get_builder(self, name): - """Fetch the builder with the specified name from the environment. - """ + """Fetch the builder with the specified name from the environment.""" try: return self._dict['BUILDERS'][name] except KeyError: