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
diff --git a/subcmds/cherry_pick.py b/subcmds/cherry_pick.py
index 0cefec1..01b97e0 100644
--- a/subcmds/cherry_pick.py
+++ b/subcmds/cherry_pick.py
@@ -83,8 +83,8 @@
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)