summaryrefslogtreecommitdiff
path: root/examples/allnoconfig_simpler.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-01-22 19:20:13 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2018-01-22 20:04:41 +0100
commit532b561288f6a9628073e68aaa51b87d9c20e838 (patch)
tree05c3efd9d57cb0ddc9d0384e1590dcf639eaa4e3 /examples/allnoconfig_simpler.py
parente01cb49d35e5062afb7fe159c8777f74e02aeceb (diff)
Simplify escape()
The fancy regex isn't really justified. Much faster with replace() too, though this is an unlikely hotspot. Could have used a \g<0> backreference to refer to the entire match instead of using a capturing group too. Hadn't discovered that. Add some selftests for escape() and unescape() too.
Diffstat (limited to 'examples/allnoconfig_simpler.py')
0 files changed, 0 insertions, 0 deletions