diff options
| author | alex <alex@pdp7.net> | 2025-09-07 15:51:09 +0000 |
|---|---|---|
| committer | alexpdp7 <alex@corcoles.net> | 2025-09-07 19:48:23 +0200 |
| commit | ad8667c28db6ea061c3787e9a39cbb6ce41e4bdf (patch) | |
| tree | f160a38aab391a688c5e5e039c91c2a510132371 /scripts/p7s/__init__.py | |
| parent | 7eae7d5d055526affb0f94476a464a62d73dd265 (diff) | |
Add setup-imapfilter
Diffstat (limited to 'scripts/p7s/__init__.py')
| -rw-r--r-- | scripts/p7s/__init__.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/scripts/p7s/__init__.py b/scripts/p7s/__init__.py index 17510190..8f6dea70 100644 --- a/scripts/p7s/__init__.py +++ b/scripts/p7s/__init__.py @@ -1,4 +1,4 @@ -import os, pathlib, shutil, subprocess, sys +import os, pathlib, shutil, subprocess, sys, textwrap def nix_portable(command): @@ -9,3 +9,13 @@ def nix_portable(command): BASHRC_D = pathlib.Path.home() / ".bashrc.d" + + +def multiline_string(s): + return textwrap.dedent(s).lstrip() + + +def assert_single(l): + assert len(l) == 1 + return l[0] + |
