def handle_directive(self, line):
        cmd = line.split('?', 1)
        if len(cmd) == 1:
            return False
        cmd, directive = cmd
        if directive and directive not in '?cdmpx':
            return False
        self.do_define(cmd)
        if directive == '?':
            self.do_doc(cmd)
        if directive == 'c':
            self.do_showclasses(cmd)
        elif directive == 'd':
            self.do_showdata(cmd)
        elif directive == 'm':
            self.do_showmethods(cmd)
        elif directive == 'p':
            pdb.Pdb.default(self, 'print ' + cmd)
        elif directive == 'x':
            pdb.Pdb.default(self, 'hex(%s)' % cmd)
        return True
dataset/ETHPy150Open sassoftware/conary/conary/lib/epdb_embedded/__init__.py/Epdb.handle_directive/original