Allow one-character Param names

This is done explicitly to support the l/localityname attribute.
This commit is contained in:
Rob Crittenden
2010-02-12 11:01:23 -05:00
committed by Jason Gerard DeRose
parent b31f259b1a
commit 338578d10a
5 changed files with 4 additions and 12 deletions

View File

@@ -26,7 +26,7 @@ All constants centralised in one file.
NULLS = (None, '', u'', tuple(), [])
# regular expression NameSpace member names must match:
NAME_REGEX = r'^[a-z][_a-z0-9]*[a-z0-9]$'
NAME_REGEX = r'^[a-z][_a-z0-9]*[a-z0-9]$|^[a-z]$'
# Format for ValueError raised when name does not match above regex:
NAME_ERROR = 'name must match %r; got %r'