<html><head><style> body {height: 100%; color:#000000; font-size:10pt; font-family:Verdana, Arial, Helvetica, sans-serif;}</style></head><body>Hi All,<br><br>While working on a bug for keystoneclient I have replaced sys.exit with return. However, the code reviewers want that the output should be on stderr(as sys.exit does). So how can we get the output on stderr.<br><br>def do_user_password_update(kc, args):<br>    """Update user password."""<br>    user = utils.find_resource(kc.users, args.user)<br>    new_passwd = args.passwd or utils.prompt_for_password()<br>    if not new_passwd:<br>        msg = (_("\nPlease specify password using the --pass option "<br>                 "or using the prompt"))<br>        print(msg)      // I have included print and return here instead of sys.exit<br>        return<br>    kc.users.update_password(user, new_passwd) <br><br><br>-- <br>Thanks and Regards<br>Abhishek Talwar<br>Employee ID : 770072<br>Assistant System Engineer<br>Tata Consultancy Services,Gurgaon<br>India<br>Contact Details : +918377882003<p>=====-----=====-----=====<br>
Notice: The information contained in this e-mail<br>
message and/or attachments to it may contain <br>
confidential or privileged information. If you are <br>
not the intended recipient, any dissemination, use, <br>
review, distribution, printing or copying of the <br>
information contained in this e-mail message <br>
and/or attachments to it are strictly prohibited. If <br>
you have received this communication in error, <br>
please notify us by reply e-mail or telephone and <br>
immediately and permanently delete the message <br>
and any attachments. Thank you</p>

<p></p></body></html>