#NEWLINE# def extract_javascript_script( fileobj , keywords , comment_tags , options ) : #NEWLINE# #INDENT# 'Extract messages from Javascript embedding in <script> tags.\n\n        Select <script type="javascript/text"> tags and delegate to\n        `extract_javascript`.\n        ' #NEWLINE# from genshi.core import Stream #NEWLINE# from genshi.input import XMLParser #NEWLINE# out = StringIO ( ) #NEWLINE# stream = Stream ( XMLParser ( fileobj ) ) #NEWLINE# stream = stream . select ( '//script[@type="text/javascript"]' ) #NEWLINE# stream . render ( out = out , encoding = 'utf-8' ) #NEWLINE# out . seek ( 0 ) #NEWLINE# return extract_javascript ( out , keywords , comment_tags , options )