aboutsummaryrefslogtreecommitdiffstats
path: root/git_deps/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'git_deps/utils.py')
-rw-r--r--git_deps/utils.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/git_deps/utils.py b/git_deps/utils.py
new file mode 100644
index 0000000..3661c00
--- /dev/null
+++ b/git_deps/utils.py
@@ -0,0 +1,8 @@
+from __future__ import print_function
+
+import sys
+
+
+def abort(msg, exitcode=1):
+ print(msg, file=sys.stderr)
+ sys.exit(exitcode)