summaryrefslogtreecommitdiff
path: root/Demo/tkinter/guido/kill.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-05-26 19:04:21 +0000
committerBrett Cannon <bcannon@gmail.com>2008-05-26 19:04:21 +0000
commita23810f86a53e394936b38ed9c6104fe2cc592cf (patch)
treef39d39741d348f914c151484fce95af2b33b295f /Demo/tkinter/guido/kill.py
parent35af8d4218138e74f37a083b7e3c8abd4c0f1c11 (diff)
downloadcpython-git-a23810f86a53e394936b38ed9c6104fe2cc592cf.tar.gz
The commands module has been removed. The getoutput() and getstatusoutput()
functions have been added to the subprocess module. The fixer for this still needs to be written and proper Py3K deprecation warnings for the functions that didn't make the transition need to be done in 2.6. This is all part of trying to close issue #2872.
Diffstat (limited to 'Demo/tkinter/guido/kill.py')
-rwxr-xr-xDemo/tkinter/guido/kill.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/tkinter/guido/kill.py b/Demo/tkinter/guido/kill.py
index dd0dbf4f9d..36b479d8e2 100755
--- a/Demo/tkinter/guido/kill.py
+++ b/Demo/tkinter/guido/kill.py
@@ -4,7 +4,7 @@
from Tkinter import *
from string import splitfields
from string import split
-import commands
+import subprocess
import os
class BarButton(Menubutton):
@@ -31,7 +31,7 @@ class Kill(Frame):
self.do_update()
def do_update(self):
name, option, column = self.format_list[self.format.get()]
- s = commands.getoutput('ps -w ' + option)
+ s = subprocess.getoutput('ps -w ' + option)
list = splitfields(s, '\n')
self.header.set(list[0])
del list[0]