def add_entry():
 print 'Enter your entry. Press ctrl+d when finished.'
 data = sys.stdin.read().strip()
 if (data and (raw_input('Save entry? [Yn] ') != 'n')):
  Entry.create(content=data)
  print 'Saved successfully.'

def add_entry ( ) : print 'Enter your entry. Press ctrl+d when finished.' data = sys . stdin . read ( ) . strip ( ) if ( data and ( raw_input ( 'Save entry? [Yn] ' ) != 'n' ) ) : Entry . create ( content = data ) print 'Saved successfully.'
add entry .