From 23bd3a1dd309c8c5727832b7543298584bf53de8 Mon Sep 17 00:00:00 2001 From: Conley Owens Date: Tue, 12 Feb 2013 13:46:14 -0800 Subject: [PATCH] Add missing sys module when referencing stderr `repo cherry-pick` was broken because we were referencing stderr instead of sys.stderr. This should fix it. Change-Id: I67f25c3a0790d029edc65732c319df7c684546c8 --- subcmds/cherry_pick.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subcmds/cherry_pick.py b/subcmds/cherry_pick.py index 0cefec13..01b97e07 100644 --- a/subcmds/cherry_pick.py +++ b/subcmds/cherry_pick.py @@ -83,8 +83,8 @@ change id will be added. else: print('NOTE: When committing (please see above) and editing the commit' 'message, please remove the old Change-Id-line and add:') - print(self._GetReference(sha1), file=stderr) - print(file=stderr) + print(self._GetReference(sha1), file=sys.stderr) + print(file=sys.stderr) def _IsChangeId(self, line): return CHANGE_ID_RE.match(line)