Skip to content

Commit

Permalink
Let MatcherMixin be an object by making BaseMatcher (and SectionValue…
Browse files Browse the repository at this point in the history
…) objects too.
  • Loading branch information
jamadden committed Feb 10, 2017
1 parent a63c88e commit 5a02e84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions ZConfig/cmdline.py
Expand Up @@ -174,9 +174,7 @@ def _normalize_case(self, string):
return string.lower()


class MatcherMixin: # pylint:disable=old-style-class
# Can't extend object without getting __init__ errors due to
# parameters
class MatcherMixin(object):

def set_optionbag(self, bag):
self.optionbag = bag
Expand Down
4 changes: 2 additions & 2 deletions ZConfig/matcher.py
Expand Up @@ -18,7 +18,7 @@
from ZConfig.info import ValueInfo


class BaseMatcher:
class BaseMatcher(object):
def __init__(self, info, type, handlers):
self.info = info
self.type = type
Expand Down Expand Up @@ -254,7 +254,7 @@ def finish(self):
return v


class SectionValue:
class SectionValue(object):
"""Generic 'bag-of-values' object for a section.
Derived classes should always call the SectionValue constructor
Expand Down

0 comments on commit 5a02e84

Please sign in to comment.