From 884672450622abc15eeaf15e9c257a1a0e2a7481 Mon Sep 17 00:00:00 2001 From: "Ryan S. Arnold" Date: Mon, 21 Nov 2016 16:00:58 -0600 Subject: Add linaropy/colors.py to provided color codes to terminal output. Provide a print_info() function like what is used in tcwg-release.sh Printed information output now conforms to use print_info(). Change-Id: Idbfde7c0984a58bc7288ce6deb2a8f133167eda6 --- linaropy/git/workdir.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linaropy/git/workdir.py') diff --git a/linaropy/git/workdir.py b/linaropy/git/workdir.py index f729a5a..8de4a81 100644 --- a/linaropy/git/workdir.py +++ b/linaropy/git/workdir.py @@ -60,13 +60,13 @@ class Workdir(GitRepo): (workdir, track)) # TODO: Do we want to prevalidate that 'track' is a valid branch or tag? # If we don't this will just throw an exception. - print git_new_workdir(clone.clonedir(), workdir, track, _err_to_out=True, _out="/dev/null") + git_new_workdir(clone.clonedir(), workdir, track, _err_to_out=True, _out="/dev/null") else: logging.info( "Workdir(): Calling git new-workdir for workdir %s, tracking %s" % (workdir, "origin/HEAD")) # Always just checkout HEAD if the track is not specified. - print git_new_workdir(clone.clonedir(), workdir, "origin/HEAD", _err_to_out=True, _out="/dev/null") + git_new_workdir(clone.clonedir(), workdir, "origin/HEAD", _err_to_out=True, _out="/dev/null") except ErrorReturnCode as exc: # if 'workdir' is None -- cgit v1.2.3