diff --git a/toltec/hooks/install_lib.py b/toltec/hooks/install_lib.py index 1287014..77d91a3 100644 --- a/toltec/hooks/install_lib.py +++ b/toltec/hooks/install_lib.py @@ -5,6 +5,7 @@ methods and add them to scripts if found. """ +import inspect import logging from typing import Set, Iterable @@ -20,7 +21,7 @@ def add_method(name: str, src: str, *depends: Iterable[str]) -> None: """Add a method to be automatically added to scripts that use it""" METHODS[name] = ( - src, + inspect.cleandoc(src), depends, )