From 2cde781bdedbb498e002a34f17d229e65959f1fc Mon Sep 17 00:00:00 2001 From: Tomas Gavenciak Date: Sun, 23 May 2010 11:59:47 -0400 Subject: [PATCH] Renamed VARNAME_re to re_VARNAME --- t/moe/conf.py | 4 ++-- t/moe/confparser.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/t/moe/conf.py b/t/moe/conf.py index 9942141..37219cc 100644 --- a/t/moe/conf.py +++ b/t/moe/conf.py @@ -26,7 +26,7 @@ TODO: Test conditions and unicode 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 @@ -63,7 +63,7 @@ class ConfigTree(object): 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] diff --git a/t/moe/confparser.py b/t/moe/confparser.py index 352ab7b..58a7dad 100644 --- a/t/moe/confparser.py +++ b/t/moe/confparser.py @@ -47,5 +47,6 @@ c_close = u'}' 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') + -- 2.39.2