#NEWLINE# def get_new_runtime( **kwargs ) : #NEWLINE# #INDENT# ' Return a pre-configured LuaRuntime. ' #NEWLINE# kwargs . setdefault ( 'register_eval' , False ) #NEWLINE# kwargs . setdefault ( 'unpack_returned_tuples' , True ) #NEWLINE# kwargs . setdefault ( 'encoding' , None ) #NEWLINE# lua = lupa . LuaRuntime ( ** lua ) #NEWLINE# lua . execute ( "assert(os.setlocale('C'))" ) #NEWLINE# return lua