fix ignore_class_regexp default pattern
diff --git a/reclass/core.py b/reclass/core.py
index 488ee49..32dee20 100644
--- a/reclass/core.py
+++ b/reclass/core.py
@@ -19,7 +19,7 @@
class Core(object):
def __init__(self, storage, class_mappings, input_data=None,
- ignore_class_notfound=False, ignore_class_regexp=['*']):
+ ignore_class_notfound=False, ignore_class_regexp=['.*']):
self._storage = storage
self._class_mappings = class_mappings
self._ignore_class_notfound = ignore_class_notfound
@@ -103,7 +103,7 @@
except ClassNotFound, e:
if self._ignore_class_notfound:
if not cnf_r:
- cnf_r = re.compile('|'.join([x for x in self._ignore_class_regexp]))
+ cnf_r = re.compile('|'.join(self._ignore_class_regexp))
if cnf_r.match(klass):
# TODO, add logging handler
print >>sys.stderr, "[WARNING] Reclass class not found: '%s'. Skipped!" % klass
diff --git a/reclass/defaults.py b/reclass/defaults.py
index 0180521..4d866d4 100644
--- a/reclass/defaults.py
+++ b/reclass/defaults.py
@@ -17,7 +17,7 @@
OPT_PRETTY_PRINT = True
OPT_OUTPUT = 'yaml'
OPT_IGNORE_CLASS_NOTFOUND = False
-OPT_IGNORE_CLASS_REGEXP = ['*']
+OPT_IGNORE_CLASS_REGEXP = ['.*']
CONFIG_FILE_SEARCH_PATH = [os.getcwd(),
os.path.expanduser('~'),