Skip to content

Commit

Permalink
flesh out the verbose check for the sensiblefilter
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoud committed Mar 21, 2016
1 parent 59a53fd commit 2623ca5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lithoxyl/sensible.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def __repr__(self):

class SensibleFilter(object):
def __init__(self, base=None, **kw):
# TODO: filter for warnings
# TODO: on-bind lookup behaviors?

base = get_level(base or MAX_LEVEL)
Expand All @@ -103,7 +102,10 @@ def __init__(self, base=None, **kw):
or MAX_LEVEL)
self.warn_level = get_level(kw.pop('warn', base) or MAX_LEVEL)
self.block_comments = kw.pop('block_comments', False)
self.verbose_check = lambda ev: False # TODO
self.verbose_check = kw.pop('verbose_check', None)
if not self.verbose_check:
verbose_flag = kw.pop('verbose_flag', 'verbose')
self.verbose_check = lambda e: e.record.data_map.get(verbose_flag)

if kw:
raise TypeError('got unexpected keyword arguments: %r' % kw)
Expand Down

0 comments on commit 2623ca5

Please sign in to comment.