diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-26 11:25:03 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-26 11:25:03 (GMT) |
commit | d23a83060ddad0b6da5504d8cb5d524891ad9631 (patch) | |
tree | be881c67835922bc9d1c23276047b2f0241679c1 /devbot/command.py | |
parent | bc6035454c6138d0974173900e50e33793b2e5d0 (diff) |
pep8ize
Diffstat (limited to 'devbot/command.py')
-rw-r--r-- | devbot/command.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/devbot/command.py b/devbot/command.py index aaef58f..8ccef6c 100644 --- a/devbot/command.py +++ b/devbot/command.py @@ -3,10 +3,12 @@ import time _logger = None + def set_logger(logger): global _logger _logger = logger + def run(args, log=None, test=False, retry=0): print " ".join(args) if test: @@ -30,6 +32,7 @@ def run(args, log=None, test=False, retry=0): else: raise e + def run_with_sudo(args, test=False, retry=0): args_with_sudo = ["sudo"] args_with_sudo.extend(args) |