#NEWLINE# def import_book( stream ) : #NEWLINE# #INDENT# 'Return dataset of given stream.' #NEWLINE# ( format , stream ) = detect ( stream ) #NEWLINE# try : #NEWLINE# #INDENT# databook = Databook ( ) #NEWLINE# format . import_book ( databook , stream ) #NEWLINE# return databook #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# return None