def editor():
 editor = (os.environ.get('CHEAT_EDITOR') or os.environ.get('VISUAL') or os.environ.get('EDITOR') or False)
 if (editor == False):
  die('You must set a CHEAT_EDITOR, VISUAL, or EDITOR environment variable in order to create/edit a cheatsheet.')
 return editor

def editor ( ) : editor = ( os . environ . get ( 'CHEAT_EDITOR' ) or os . environ . get ( 'VISUAL' ) or os . environ . get ( 'EDITOR' ) or False ) if ( editor == False ) : die ( 'You must set a CHEAT_EDITOR, VISUAL, or EDITOR environment variable in order to create/edit a cheatsheet.' ) return editor
open the default editor at the given filename and linenumber .