diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-05-30 19:59:13 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-05-30 19:59:55 +0200 |
commit | 2eed8c42b204e9810093b4544c58981c52b7f58b (patch) | |
tree | e074f1dc2992808dd2b3113d9ae9a8e6d73041ce /utils_xml.py | |
parent | 4dcb2445b09936857569487fbb2548d3d8759862 (diff) | |
download | clufter-2eed8c42b204e9810093b4544c58981c52b7f58b.tar.gz clufter-2eed8c42b204e9810093b4544c58981c52b7f58b.tar.xz clufter-2eed8c42b204e9810093b4544c58981c52b7f58b.zip |
Cleanup: move squote from utils to utils_xml
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'utils_xml.py')
-rw-r--r-- | utils_xml.py | 5 |
1 files changed, 5 insertions, 0 deletions
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!)""" |