aboutsummaryrefslogtreecommitdiff
path: root/py/makeqstrdata.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-15 12:42:52 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-15 12:42:52 +0100
commit58051117322bc7cd55c0d35168c0563a880c7689 (patch)
treeb8d8bda254e1437b9652208b1f0e3c202b85be46 /py/makeqstrdata.py
parent256b319d566a434e5b553fdb9ea5bd8d0eb2af86 (diff)
py: Add hex builtin function.
A one-liner, added especially for @pfalcon :)
Diffstat (limited to 'py/makeqstrdata.py')
-rw-r--r--py/makeqstrdata.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/makeqstrdata.py b/py/makeqstrdata.py
index eaff11bd0..f8605ae09 100644
--- a/py/makeqstrdata.py
+++ b/py/makeqstrdata.py
@@ -16,6 +16,7 @@ codepoint2name[ord('-')] = 'hyphen';
codepoint2name[ord('.')] = 'dot'
codepoint2name[ord(':')] = 'colon'
codepoint2name[ord('/')] = 'slash'
+codepoint2name[ord('%')] = 'percent'
# this must match the equivalent function in qstr.c
def compute_hash(qstr):