diff options
| author | Theofilos Augoustis <theofilos.augoustis@gmail.com> | 2025-02-25 15:48:20 +0100 |
|---|---|---|
| committer | Theofilos Augoustis <theofilos.augoustis@gmail.com> | 2025-02-25 15:48:20 +0100 |
| commit | 849e5a6ec6e0246b5dde1fb2583aa13ed288e9c1 (patch) | |
| tree | 0596e7ffdd2b18a1e7977a49b55afb6f46976f6a /utils.py | |
| parent | ed536f04a716d585ce54bab0413f57aba1284b91 (diff) | |
| parent | a514b34d6f708ee80c4f0df91fefa9871d87ad39 (diff) | |
| download | focaccia-849e5a6ec6e0246b5dde1fb2583aa13ed288e9c1.tar.gz focaccia-849e5a6ec6e0246b5dde1fb2583aa13ed288e9c1.zip | |
Merge branch 'ta/develop'
Diffstat (limited to 'utils.py')
| -rw-r--r-- | utils.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/utils.py b/utils.py deleted file mode 100644 index d841c7c..0000000 --- a/utils.py +++ /dev/null @@ -1,18 +0,0 @@ -#! /bin/python3 - -import sys -import shutil - -def print_separator(separator: str = '-', stream=sys.stdout, count: int = 80): - maxtermsize = count - termsize = shutil.get_terminal_size((80, 20)).columns - print(separator * min(termsize, maxtermsize), file=stream) - -def check_version(version: str): - # Script depends on ordered dicts in default dict() - split = version.split('.') - major = int(split[0]) - minor = int(split[1]) - if sys.version_info.major < major and sys.version_info.minor < minor: - raise EnvironmentError("Expected at least Python 3.7") - |