From a73c32cfed24440b01f67bd161dee6bd48b46499 Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Thu, 1 Sep 2011 09:02:01 +0400 Subject: [PATCH] Change filter from glob * to std reg. --- pym/cl_datavars.py | 2 +- pym/cl_opt.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/cl_datavars.py b/pym/cl_datavars.py index cc7aa47..09e00d9 100644 --- a/pym/cl_datavars.py +++ b/pym/cl_datavars.py @@ -610,7 +610,7 @@ storage of variables templates")%location) reFilter = False if varsFilter: try: - reFilter = re.compile("^%s$"%varsFilter) + reFilter = re.compile("%s"%varsFilter) except: cl_overriding.printERROR(_("wrong vars filter '%s'")\ %str(varsFilter)) diff --git a/pym/cl_opt.py b/pym/cl_opt.py index 52b414a..8078d16 100644 --- a/pym/cl_opt.py +++ b/pym/cl_opt.py @@ -289,7 +289,7 @@ class opt(optparse.OptionParser): }, {'longOption':"filter", 'optVal':"FILTER", - 'help':_("filtered variables (as a regular expression is used *), \ + 'help':_("filtered variables by regular expression, \ is used in conjunction with the options '-v --show-variables'") }, {'longOption':"xml",