def METHOD_NAME(self, signature):
    username = self._session.get_credentials().access_key
    if self._session.get_credentials().token is not None:
        username += "%" + self._session.get_credentials().token
    # Python will add a \r to the line ending for a text stdout in Windows.
    # Git does not like the \r, so switch to binary
    with NonTranslatedStdout() as binary_stdout:
        binary_stdout.write('username={0}\n'.format(username))
        logger.debug('username\n%s', username)
        binary_stdout.write('password={0}\n'.format(signature))
        # need to explicitly flush the buffer here,
        # before we turn the stream back to text for windows
        binary_stdout.flush()
        logger.debug('signature\n%s', signature)