Skip to content

Commit

Permalink
and the bug disappeared ...
Browse files Browse the repository at this point in the history
  • Loading branch information
trolldbois committed Aug 8, 2015
1 parent 7678f42 commit 26f9e89
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions haystack/reverse/heuristics/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#

import logging
from haystack.abc import interfaces as intf
from haystack.abc import interfaces

log = logging.getLogger('model')

Expand All @@ -14,9 +14,8 @@ class FieldAnalyser(object):
"""
def __init__(self, memory_handler):
# debug travis-ci
# if not isinstance(memory_handler, intf.IMemoryHandler):
# raise TypeError('memory_handler should be an IMemoryHandler')
if not isinstance(memory_handler, interfaces.IMemoryHandler):
raise TypeError('memory_handler should be an IMemoryHandler')
self._memory_handler = memory_handler
self._target = self._memory_handler.get_target_platform()

Expand All @@ -39,7 +38,7 @@ class StructureAnalyser(object):
"""

def __init__(self, memory_handler):
if not isinstance(memory_handler, intf.IMemoryHandler):
if not isinstance(memory_handler, interfaces.IMemoryHandler):
raise TypeError('memory_handler should be an IMemoryHandler')
self._memory_handler = memory_handler
self._target = self._memory_handler.get_target_platform()
Expand Down

0 comments on commit 26f9e89

Please sign in to comment.