Index: IPython/genutils.py =================================================================== --- IPython/genutils.py (revision 2095) +++ IPython/genutils.py (working copy) @@ -67,6 +67,10 @@ # if we get here, something is seriously broken. print >> sys.stderr, \ 'ERROR - failed to write data to stream:', self.stream + + def close(self): + pass + class IOTerm: """ Term holds the file or file-like objects for handling I/O operations. Index: IPython/Extensions/ipy_pydb.py =================================================================== --- IPython/Extensions/ipy_pydb.py (revision 2095) +++ IPython/Extensions/ipy_pydb.py (working copy) @@ -18,7 +18,7 @@ argl = arg_split(args) # print argl # dbg if len(inspect.getargspec(pydb.runv)[0]) == 2: - pdb = Debugger.Pdb() + pdb = Debugger.Pdb(color_scheme=self.rc.colors) ip.IP.history_saving_wrapper( lambda : pydb.runv(argl, pdb) )() else: ip.IP.history_saving_wrapper( lambda : pydb.runv(argl) )()