from spicedham.basewrapper import BaseWrapper

class DigitDestroyer(BaseWrapper):
    def train(*args):
        pass
    def classify(self, response):
        if all(map(unicode.isdigit, response)):
            return 1
        else:
            return 0.5

from spicedham.basewrapper import BaseWrapper

class DigitDestroyer(object):
    def train(*args):
        pass
    def classify(self, response):
        if all(map(unicode.isdigit, response)):
            return 1
        else:
            return None

Fix inheritence error and return value
Fix inheritence error and return value

It shouldn't inherit from BaseWrapper, but merely object.
It should return None instead of 0.5 so it will have no effect on the average.

  from spicedham.basewrapper import BaseWrapper
  
- class DigitDestroyer(BaseWrapper):
+ class DigitDestroyer(object):
      def train(*args):
          pass
      def classify(self, response):
          if all(map(unicode.isdigit, response)):
              return 1
          else:
-             return 0.5
+             return None
  
Fix inheritence error and return value
## Code Before:
from spicedham.basewrapper import BaseWrapper

class DigitDestroyer(BaseWrapper):
    def train(*args):
        pass
    def classify(self, response):
        if all(map(unicode.isdigit, response)):
            return 1
        else:
            return 0.5

## Instruction:
Fix inheritence error and return value
## Code After:
from spicedham.basewrapper import BaseWrapper

class DigitDestroyer(object):
    def train(*args):
        pass
    def classify(self, response):
        if all(map(unicode.isdigit, response)):
            return 1
        else:
            return None
