forked from colonelpanic/dotfiles
Escape python command
This commit is contained in:
10
dotfiles/lib/python/escape.py
Executable file
10
dotfiles/lib/python/escape.py
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env python
|
||||
import sys
|
||||
|
||||
|
||||
def escape(string):
|
||||
print repr(string)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
escape(sys.stdin.read())
|
Reference in New Issue
Block a user