From 72632ac4133914148f521fbcb46ab0d2bfc57d3e Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 14 Nov 2015 00:17:53 -0800 Subject: [PATCH] Escape python command --- dotfiles/lib/python/escape.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 dotfiles/lib/python/escape.py diff --git a/dotfiles/lib/python/escape.py b/dotfiles/lib/python/escape.py new file mode 100755 index 00000000..addfb2f3 --- /dev/null +++ b/dotfiles/lib/python/escape.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python +import sys + + +def escape(string): + print repr(string) + + +if __name__ == '__main__': + escape(sys.stdin.read())