A team of lawyers from O’Melveny & Myers may have found themselves muttering “good grief,” more than a few times when working on a sale of the iconic “Peanuts” comic strip to Japanese electronics maker Sony Corp.’s music unit.

Sony Music Entertainment announced on May 14 that it had signed a $185 million all-cash deal with Canada-headquartered DHX Media to acquire 49 percent of the 80 percent stake that DHX holds in the Peanuts brand, which includes such beloved characters as Charlie Brown, Linus van Pelt, Peppermint Patty, Snoopy and Woodstock.