def __init__(self, checker=None, verbosity=1, optionflags=0,
              kbinterrupt_continue=False):
     DocTestRunner.__init__(self, checker, (verbosity>2), optionflags)
     self._verbosity = verbosity
     self._current_test = None
     self._term = TerminalController()
     self._stderr_term = TerminalController(sys.__stderr__)
     self._kbinterrupt_continue = kbinterrupt_continue
# script. :)  These get initialized by find_deprecated_defs.

deprecated_funcs = defaultdict(set)
deprecated_classes = defaultdict(set)
deprecated_methods = defaultdict(set)

try:
    from epydoc.cli import TerminalController
except ImportError:

    class TerminalController:
        def __getattr__(self, attr):
            return ''


term = TerminalController()

######################################################################
# Code
######################################################################

# If we're using py24, then ignore the +SKIP directive.
if sys.version_info[:2] < (2, 5):
    register_optionflag('SKIP')


def strip_quotes(s):
    s = s.strip()
    while (s and (s[0] in "ur") and (s[-1] in "'\"")):
        s = s[1:]
    while (s and (s[0] in "'\"" and (s[0] == s[-1]))):