From 33ebe7acec14b25c5f84f35a664803fcab2f7781 Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Wed, 7 May 2008 16:49:48 -0400 Subject: initial project --- lib/git_python/utils.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lib/git_python/utils.py (limited to 'lib/git_python/utils.py') diff --git a/lib/git_python/utils.py b/lib/git_python/utils.py new file mode 100644 index 00000000..2bd6f2cd --- /dev/null +++ b/lib/git_python/utils.py @@ -0,0 +1,8 @@ +def shell_escape(string): + return str(string).replace("'", "\\\\'") + +def dashify(string): + return string.replace('_', '-') + +def touch(filename): + open(filename, "a").close() -- cgit v1.2.1