From 3a4dff880521bab2d2a6d39d007404ba3bb90b0b Mon Sep 17 00:00:00 2001 From: Olle Liljenzin Date: Sun, 6 Nov 2016 15:31:18 +0100 Subject: [PATCH] Fixed documentation and error message to match the actual code. --- src/psl-make-dafsa | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/psl-make-dafsa b/src/psl-make-dafsa index 0d4408a..46f0406 100755 --- a/src/psl-make-dafsa +++ b/src/psl-make-dafsa @@ -519,10 +519,10 @@ def parse_psl2c(infile, utf_mode): for line in lines: if line[-3:-1] != ', ': raise InputError('Expected "domainname, ", found "%s"' % line) - # Technically the DAFSA format could support return values in range [0-31], + # Technically the DAFSA format could support return values in range [0x00-0x1E], # but the values below are the only with a defined meaning. if line[-1] not in '0123456789ABCDEF': - raise InputError('Expected value to be one of {0,1,2,4,5}, found "%s"' % line[-1]) + raise InputError('Expected value to be in range [0-9] or [A-F], found "%s"' % line[-1]) # with open("gperf.out", 'w') as outfile: # for line in sorted(lines):