The oils and vapors in pine and cedar do some nasty business to the snake.
I don't know the specifics of it, just that it's a no-no.