summaryrefslogtreecommitdiff
path: root/.circleci/cimodel/lib/miniutils.py
diff options
context:
space:
mode:
Diffstat (limited to '.circleci/cimodel/lib/miniutils.py')
-rw-r--r--.circleci/cimodel/lib/miniutils.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/.circleci/cimodel/lib/miniutils.py b/.circleci/cimodel/lib/miniutils.py
new file mode 100644
index 0000000000..b10fc448df
--- /dev/null
+++ b/.circleci/cimodel/lib/miniutils.py
@@ -0,0 +1,13 @@
+#!/usr/bin/env python3
+
+
+def quote(s):
+ return sandwich('"', s)
+
+
+def sandwich(bread, jam):
+ return bread + jam + bread
+
+
+def override(word, substitutions):
+ return substitutions.get(word, word)