Skip line about X11 forwarding in data read via ssh.
[python_utils.git] / function_utils.py
index 5b709819026659ec024f889eb3ea107c249c6543..a8ab0c74cfc50cb53b1e5b1b3f4dc49a8c9fc51e 100644 (file)
@@ -1,5 +1,9 @@
 #!/usr/bin/env python3
 
+# © Copyright 2021-2022, Scott Gasch
+
+"""Helper methods dealing with functions."""
+
 from typing import Callable
 
 
@@ -14,11 +18,13 @@ def function_identifier(f: Callable) -> str:
 
     >>> function_identifier(function_identifier)
     'function_utils:function_identifier'
-
     """
+
     if f.__module__ == '__main__':
         from pathlib import Path
+
         import __main__
+
         module = __main__.__file__
         module = Path(module).stem
         return f'{module}:{f.__name__}'