commit | c116f94261cf0e6d33b3910b68d08d3b0e4bccdd | [log] [tgz] |
---|---|---|
author | Anthony King <anthonydking@slimroms.net> | Wed Jun 03 17:29:29 2015 +0100 |
committer | David Pursehouse <david.pursehouse@sonymobile.com> | Thu Jun 04 00:34:19 2015 +0000 |
tree | ceef154d627d37f33eed5e945c58133263a95ebd | |
parent | 7993f3cdda0c66d97aae5c4570921130023e6048 [diff] |
forall: setenv, only encode val if encode exists Change-Id: I655e3043d0118c4e929897d3a51e5e013e5758dc
diff --git a/subcmds/forall.py b/subcmds/forall.py index 6a6d30c..ebc8bec 100644 --- a/subcmds/forall.py +++ b/subcmds/forall.py
@@ -278,7 +278,9 @@ def setenv(name, val): if val is None: val = '' - env[name] = val.encode() + if hasattr(val, 'encode'): + val = val.encode() + env[name] = val setenv('REPO_PROJECT', project['name']) setenv('REPO_PATH', project['relpath'])