Searched refs:popen (Results 1 - 25 of 369) sorted by relevance

1234567891011>>

/prebuilts/gdb/darwin-x86/lib/python2.7/test/
H A Dtest_popen.py2 """Basic tests for os.popen()
4 Particularly useful for platforms that fake popen.
21 data = os.popen(cmd).read() + '\n'
26 self.assertRaises(TypeError, os.popen)
42 self.assertEqual(os.popen("exit 0").close(), None)
44 self.assertEqual(os.popen("exit 42").close(), 42)
46 self.assertEqual(os.popen("exit 42").close(), 42 << 8)
H A Dtest_popen2.py7 warnings.filterwarnings("ignore", "os\.popen. is deprecated.*",
23 # if we don't have os.popen, check that
27 from os import popen namespace
28 del popen
54 # The os.popen*() API delegates to the subprocess module (on Unix)
86 # same test as test_popen2(), but using the os.popen*() API
99 # same test as test_popen3(), but using the os.popen*() API
/prebuilts/gdb/linux-x86/lib/python2.7/test/
H A Dtest_popen.py2 """Basic tests for os.popen()
4 Particularly useful for platforms that fake popen.
21 data = os.popen(cmd).read() + '\n'
26 self.assertRaises(TypeError, os.popen)
42 self.assertEqual(os.popen("exit 0").close(), None)
44 self.assertEqual(os.popen("exit 42").close(), 42)
46 self.assertEqual(os.popen("exit 42").close(), 42 << 8)
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
H A Dtest_popen.py2 """Basic tests for os.popen()
4 Particularly useful for platforms that fake popen.
21 data = os.popen(cmd).read() + '\n'
26 self.assertRaises(TypeError, os.popen)
42 self.assertEqual(os.popen("exit 0").close(), None)
44 self.assertEqual(os.popen("exit 42").close(), 42)
46 self.assertEqual(os.popen("exit 42").close(), 42 << 8)
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
H A Dtest_popen.py2 """Basic tests for os.popen()
4 Particularly useful for platforms that fake popen.
21 data = os.popen(cmd).read() + '\n'
26 self.assertRaises(TypeError, os.popen)
42 self.assertEqual(os.popen("exit 0").close(), None)
44 self.assertEqual(os.popen("exit 42").close(), 42)
46 self.assertEqual(os.popen("exit 42").close(), 42 << 8)
/prebuilts/gdb/darwin-x86/lib/python2.7/ctypes/
H A Dutil.py112 f = os.popen(cmd)
137 f = os.popen(cmd)
153 f = os.popen(cmd)
158 f = os.popen(cmd)
186 f = os.popen('/sbin/ldconfig -r 2>/dev/null')
208 for line in os.popen(cmd).readlines():
245 f = os.popen('/sbin/ldconfig -p 2>/dev/null')
/prebuilts/gdb/linux-x86/lib/python2.7/ctypes/
H A Dutil.py112 f = os.popen(cmd)
137 f = os.popen(cmd)
153 f = os.popen(cmd)
158 f = os.popen(cmd)
186 f = os.popen('/sbin/ldconfig -r 2>/dev/null')
208 for line in os.popen(cmd).readlines():
245 f = os.popen('/sbin/ldconfig -p 2>/dev/null')
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/
H A Dutil.py112 f = os.popen(cmd)
137 f = os.popen(cmd)
153 f = os.popen(cmd)
158 f = os.popen(cmd)
186 f = os.popen('/sbin/ldconfig -r 2>/dev/null')
208 for line in os.popen(cmd).readlines():
245 f = os.popen('/sbin/ldconfig -p 2>/dev/null')
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/
H A Dutil.py112 f = os.popen(cmd)
137 f = os.popen(cmd)
153 f = os.popen(cmd)
158 f = os.popen(cmd)
186 f = os.popen('/sbin/ldconfig -r 2>/dev/null')
208 for line in os.popen(cmd).readlines():
245 f = os.popen('/sbin/ldconfig -p 2>/dev/null')
/prebuilts/gdb/darwin-x86/lib/python2.7/
H A Dcommands.py1 """Execute shell commands via os.popen() and return status, output.
15 pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
59 pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
H A Dplatform.py59 # 0.5.3 - added experimental MacOS support; added better popen()
66 # to cover up situations where platforms don't have os.popen
76 # 0.3.3 - fixed popen() and "file" command invokation bugs
367 """ Fairly portable (alternative) popen implementation.
369 This is mostly needed in case os.popen() is not available, or
384 raise ValueError,'popen()-emulation only supports read mode'
419 def popen(cmd, mode='r', bufsize=None): function
421 """ Portable popen() interface.
423 # Find a working popen implementation preferring win32pipe.popen
[all...]
/prebuilts/gdb/darwin-x86/lib/python2.7/lib-tk/test/test_tkinter/
H A Dtest_loadtk.py34 display = os.popen('echo $DISPLAY').read().strip()
/prebuilts/gdb/linux-x86/lib/python2.7/
H A Dcommands.py1 """Execute shell commands via os.popen() and return status, output.
15 pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
59 pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
H A Dplatform.py59 # 0.5.3 - added experimental MacOS support; added better popen()
66 # to cover up situations where platforms don't have os.popen
76 # 0.3.3 - fixed popen() and "file" command invokation bugs
367 """ Fairly portable (alternative) popen implementation.
369 This is mostly needed in case os.popen() is not available, or
384 raise ValueError,'popen()-emulation only supports read mode'
419 def popen(cmd, mode='r', bufsize=None): function
421 """ Portable popen() interface.
423 # Find a working popen implementation preferring win32pipe.popen
[all...]
/prebuilts/gdb/linux-x86/lib/python2.7/lib-tk/test/test_tkinter/
H A Dtest_loadtk.py34 display = os.popen('echo $DISPLAY').read().strip()
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
H A Dcommands.py1 """Execute shell commands via os.popen() and return status, output.
15 pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
59 pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
H A Dplatform.py59 # 0.5.3 - added experimental MacOS support; added better popen()
66 # to cover up situations where platforms don't have os.popen
76 # 0.3.3 - fixed popen() and "file" command invokation bugs
367 """ Fairly portable (alternative) popen implementation.
369 This is mostly needed in case os.popen() is not available, or
384 raise ValueError,'popen()-emulation only supports read mode'
419 def popen(cmd, mode='r', bufsize=None): function
421 """ Portable popen() interface.
423 # Find a working popen implementation preferring win32pipe.popen
[all...]
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib-tk/test/test_tkinter/
H A Dtest_loadtk.py34 display = os.popen('echo $DISPLAY').read().strip()
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/
H A Dcommands.py1 """Execute shell commands via os.popen() and return status, output.
15 pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
59 pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
H A Dplatform.py59 # 0.5.3 - added experimental MacOS support; added better popen()
66 # to cover up situations where platforms don't have os.popen
76 # 0.3.3 - fixed popen() and "file" command invokation bugs
367 """ Fairly portable (alternative) popen implementation.
369 This is mostly needed in case os.popen() is not available, or
384 raise ValueError,'popen()-emulation only supports read mode'
419 def popen(cmd, mode='r', bufsize=None): function
421 """ Portable popen() interface.
423 # Find a working popen implementation preferring win32pipe.popen
[all...]
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib-tk/test/test_tkinter/
H A Dtest_loadtk.py34 display = os.popen('echo $DISPLAY').read().strip()
/prebuilts/gdb/darwin-x86/lib/python2.7/distutils/
H A Dcygwinccompiler.py448 out = os.popen(gcc_exe + ' -dumpversion','r')
456 out = os.popen(gcc_exe + ' --print-prog-name ld','r')
462 out = os.popen(ld_exe + ' -v','r')
474 out = os.popen(dllwrap_exe + ' --version','r')
/prebuilts/gdb/linux-x86/lib/python2.7/distutils/
H A Dcygwinccompiler.py448 out = os.popen(gcc_exe + ' -dumpversion','r')
456 out = os.popen(gcc_exe + ' --print-prog-name ld','r')
462 out = os.popen(ld_exe + ' -v','r')
474 out = os.popen(dllwrap_exe + ' --version','r')
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/distutils/
H A Dcygwinccompiler.py448 out = os.popen(gcc_exe + ' -dumpversion','r')
456 out = os.popen(gcc_exe + ' --print-prog-name ld','r')
462 out = os.popen(ld_exe + ' -v','r')
474 out = os.popen(dllwrap_exe + ' --version','r')
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/distutils/
H A Dcygwinccompiler.py448 out = os.popen(gcc_exe + ' -dumpversion','r')
456 out = os.popen(gcc_exe + ' --print-prog-name ld','r')
462 out = os.popen(ld_exe + ' -v','r')
474 out = os.popen(dllwrap_exe + ' --version','r')

Completed in 1840 milliseconds

1234567891011>>