diff options
author | Alec Warner <antarus@gentoo.org> | 2007-07-22 22:18:34 +0000 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2007-07-22 22:18:34 +0000 |
commit | 958cda212a421258e002aa4fcbe9832177c1be7e (patch) | |
tree | c30ab7e1d2f9da5596a5c330ec0df534c099aec2 | |
parent | 296c762a5d16f79365414f62f40c4c872b8d7722 (diff) | |
download | portage-958cda212a421258e002aa4fcbe9832177c1be7e.tar.gz portage-958cda212a421258e002aa4fcbe9832177c1be7e.tar.bz2 portage-958cda212a421258e002aa4fcbe9832177c1be7e.zip |
add docstring, fix up imports (style), add keyword expansion
svn path=/main/trunk/; revision=7361
-rw-r--r-- | pym/portage/sets/shell.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/pym/portage/sets/shell.py b/pym/portage/sets/shell.py index 2383dba81..6a84918a7 100644 --- a/pym/portage/sets/shell.py +++ b/pym/portage/sets/shell.py @@ -2,11 +2,25 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ -import subprocess, os +import subprocess +import os from portage.sets import PackageSet class CommandOutputSet(PackageSet): + """This class creates a PackageSet from the output of a shell command. + The shell command should produce one atom per line, that is: + + >>> atom1 + atom2 + ... + atomN + + Args: + name: A string that identifies the set. + command: A string or sequence identifying the command to run + (see the subprocess.Popen documentaion for the format) + """ _operations = ["merge", "unmerge"] def __init__(self, name, command): |