#NEWLINE# def run_only_if_kitchen_is_available( func ) : #NEWLINE# #INDENT# if ( sys . version_info < ( 2 , 7 ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# from kitchen.pycompat27 import subprocess #NEWLINE# #UNINDENT# except ImportError : #NEWLINE# #INDENT# subprocess = None #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# import subprocess #NEWLINE# #UNINDENT# pred = ( lambda : ( subprocess is not None ) ) #NEWLINE# return run_only ( func , pred )