From 2eed8c42b204e9810093b4544c58981c52b7f58b Mon Sep 17 00:00:00 2001 From: Jan Pokorný Date: Fri, 30 May 2014 19:59:13 +0200 Subject: Cleanup: move squote from utils to utils_xml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Pokorný --- utils_xml.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'utils_xml.py') diff --git a/utils_xml.py b/utils_xml.py index c10e3bc..9f08893 100644 --- a/utils_xml.py +++ b/utils_xml.py @@ -21,6 +21,11 @@ class UtilsXmlError(ClufterPlainError): pass +def squote(s): + """Simple quote""" + return "'" + s + "'" + + @selfaware def rng_pivot(me, et, tag): """Given Relax NG grammar etree as `et`, change start tag (in situ!)""" -- cgit