diff options
author | Nicolas Chauvat <nicolas.chauvat@logilab.fr> | 2009-07-19 02:07:55 +0200 |
---|---|---|
committer | Nicolas Chauvat <nicolas.chauvat@logilab.fr> | 2009-07-19 02:07:55 +0200 |
commit | a1cdde3320add8bbe4557639488bb4d2ef2861fd (patch) | |
tree | f579949c7a7fb9b4efb8a6ccdfcd35484854662b /shellutils.py | |
parent | 6bb5a230a8df5ed2fe417c7b85491073da50dfd3 (diff) | |
download | logilab-common-a1cdde3320add8bbe4557639488bb4d2ef2861fd.tar.gz |
[cleanup] delete-trailing-whitespace
Diffstat (limited to 'shellutils.py')
-rw-r--r-- | shellutils.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shellutils.py b/shellutils.py index ccc5267..67e9ab6 100644 --- a/shellutils.py +++ b/shellutils.py @@ -34,7 +34,7 @@ def chown(path, login=None, group=None): """Same as `os.chown` function but accepting user login or group name as argument. If login or group is omitted, it's left unchanged. - Note: you must own the file to chown it (or be root). Otherwise OSError is raised. + Note: you must own the file to chown it (or be root). Otherwise OSError is raised. """ if login is None: uid = -1 @@ -154,7 +154,7 @@ def globfind(directory, pattern, blacklist=STD_BLACKLIST): """Recursively finds files matching glob `pattern` under `directory`. This is an alternative to `logilab.common.shellutils.find`. - + :type directory: str :param directory: directory where the search should start @@ -196,7 +196,7 @@ class Execute: """This is a deadlock safe version of popen2 (no stdin), that returns an object with errorlevel, out and err. """ - + def __init__(self, command): outfile = tempfile.mktemp() errfile = tempfile.mktemp() @@ -256,7 +256,7 @@ def release_lock(lock_file): class ProgressBar(object): """A simple text progression bar.""" - + def __init__(self, nbops, size=20, stream=sys.stdout): self._fstr = '\r[%%-%ss]' % int(size) self._stream = stream |