Created
May 19, 2011 18:13
-
-
Save twexler/981377 to your computer and use it in GitHub Desktop.
Favorite piece of code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def quote_argument(argument): | |
failure = ('\\', '"', '$', '`', ';') | |
for fail in failure: | |
if(argument.find(fail) != -1): | |
os._exit(255) | |
return argument |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment