#NEWLINE# def _get_from_stdin( info_desc ) : #NEWLINE# #INDENT# 'Read information from stdin.\n\n    :param info_desc: A string description of the desired information\n    :raises: InvalidAttribute if there was a problem reading from stdin\n    :returns: the string that was read from stdin\n    ' #NEWLINE# try : #NEWLINE# #INDENT# info = sys . stdin . read ( ) . strip ( ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# err = _ ( 'Cannot get %(desc)s from standard input. Error: %(err)s' ) #NEWLINE# raise exc . InvalidAttribute ( ( err % { #NEWLINE# #INDENT# 'desc' : info_desc , #NEWLINE# 'err' : e , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# #UNINDENT# return info