#NEWLINE# def __getattribute__( self , name ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# attr = object . __getattribute__ ( wrapper , name ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# raise AttributeError ( "'{}' object has no attribute '{}'" . format ( self . __class__ . __name__ , name ) ) #NEWLINE# #UNINDENT# if ( ( name == 'close' ) or name . startswith ( '_' ) or ( not hasattr ( attr , '__call__' ) ) ) : #NEWLINE# #INDENT# return attr #NEWLINE# #UNINDENT# def wrapper( clb , * args , **kwargs ) : #NEWLINE# #INDENT# fn = functools . partial ( clb , * args , ** kwargs ) #NEWLINE# return self . io_loop . run_sync ( fn ) #NEWLINE# #UNINDENT# return functools . partial ( wrapper , attr )