minor update

This commit is contained in:
Miroslav Stampar 2012-01-30 13:29:43 +00:00
parent f8ae0e5272
commit d8c343a88a

View File

@ -34,7 +34,7 @@ class Syntax(GenericSyntax):
unescaped = "" unescaped = ""
for i in xrange(firstIndex, lastIndex): for i in xrange(firstIndex, lastIndex):
unescaped += "CHR(%d)" % (ord(expression[i])) unescaped += "%s(%d)" % ("CHR" if ord(expression[i]) < 256 else "NCHR", ord(expression[i]))
if i < lastIndex - 1: if i < lastIndex - 1:
unescaped += "||" unescaped += "||"