Add pcre type.

This commit is contained in:
Anthony Sottile
2014-06-16 21:11:00 -07:00
parent 38673941dc
commit 2cfd2818b5
11 changed files with 184 additions and 10 deletions

View File

@@ -49,7 +49,10 @@ def clean_path_on_failure(path):
raise
# TODO: asottile.contextlib this with a forward port of nested
@contextlib.contextmanager
def noop_context():
yield
def shell_escape(arg):
return "'" + arg.replace("'", "'\"'\"'".strip()) + "'"