def _wrappedPdb():
 dbg = pdb.Pdb()
 try:
  namedModule('readline')
 except ImportError:
  print('readline module not available')
 for path in ('.pdbrc', 'pdbrc'):
  if os.path.exists(path):
   try:
    rcFile = open(path, 'r')
   except IOError:
    pass
   else:
    with rcFile:
     dbg.rcLines.extend(rcFile.readlines())
 return dbg

def _wrappedPdb ( ) : dbg = pdb . Pdb ( ) try : namedModule ( 'readline' ) except ImportError : print ( 'readline module not available' ) for path in ( '.pdbrc' , 'pdbrc' ) : if os . path . exists ( path ) : try : rcFile = open ( path , 'r' ) except IOError : pass else : with rcFile : dbg . rcLines . extend ( rcFile . readlines ( ) ) return dbg
wrap an instance of c{pdb .