def popen(cmd, mode='r', bufsize=(-1)):
 import warnings
 warnings.warn('use os.popen instead', DeprecationWarning, stacklevel=2)
 return os.popen(cmd, mode, bufsize)

def popen ( cmd , mode = 'r' , bufsize = ( - 1 ) ) : import warnings warnings . warn ( 'use os.popen instead' , DeprecationWarning , stacklevel = 2 ) return os . popen ( cmd , mode , bufsize )
portable popen() interface .