From 94c90c39abb20eff6ced30b16a05f72f295fe980 Mon Sep 17 00:00:00 2001 From: Marcos Date: Sat, 14 Feb 2015 21:50:16 -0600 Subject: [PATCH] Delete escape.py experimental file was not needed --- escape.py | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 escape.py diff --git a/escape.py b/escape.py deleted file mode 100644 index 2985b1a..0000000 --- a/escape.py +++ /dev/null @@ -1,23 +0,0 @@ -# esta es una prueba para modificar luatool.py -# http://stackoverflow.com/a/18935765/316875 -from string import maketrans - -def escapeString(a_string): - translationTable = maketrans({"-": r"\-", "]": r"\]", "\\": r"\\", "^": r"\^", "$": r"\$", "*": r"\*", ".": r"\."}) - escaped = a_string.translate(translationTable) - return escaped - -print escapeString("Marcos") - - -#!/usr/bin/python -''' - -intab = "aeiou" -outtab = "12345" -trantab = maketrans(intab, outtab) - -str = "this is string example....wow!!!"; -print str.translate(trantab); - -'''