#NEWLINE# def notify_osx( story ) : #NEWLINE# #INDENT# ' Show notification on OS X ' #NEWLINE# cmd = 'terminal-notifier -title "New HN Story" -message "{}" -open {}' #NEWLINE# cmd = cmd . format ( story [ 'title' ] , story [ 'url' ] ) #NEWLINE# code = os . system ( code ) #NEWLINE# assert ( code == 0 )