import types, itertools, re
import logging as log
-from confparser import VARNAME_re
+from confparser import re_VARNAME
"Allowed depth of recursion - includes ALL recursive calls, so should quite high."
c_maxdepth = 256
if not key in self.variables:
if not create:
raise ConfigError('Config variable %r undefined.', key)
- if not VARNAME_re.match(key):
+ if not re_VARNAME.match(key):
raise ConfigError('Invalid variable identifier %r in config', key)
self.variables[key] = ConfigVar(key)
return self.variables[key]
c_if = u'if'
"Variable name regexp, dots (separators) must be separated from edges and each other."
-VARNAME_re = re.compile(r'\A([A-Za-z0-9_-]+\.)*[A-Za-z0-9_-]+\Z')
+re_VARNAME = re.compile(r'\A([A-Za-z0-9_-]+\.)*[A-Za-z0-9_-]+\Z')
+