#NEWLINE# def autolink_html( html , * args , **kw ) : #NEWLINE# #INDENT# result_type = type ( html ) #NEWLINE# if isinstance ( html , basestring ) : #NEWLINE# #INDENT# doc = fromstring ( html ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# doc = copy . deepcopy ( html ) #NEWLINE# #UNINDENT# autolink ( doc , * args , ** result_type ) #NEWLINE# return _transform_result ( result_type , doc )