praw-dev/praw — pull request #125 by Fluxflashor (2012-09-14 18:01:18+00:00)
Title: add prevstyle to set_stylesheet requests

Earlier in the week reddit rolled out a new wiki system which also included stylesheet versioning to prevent people from overwriting eachother's changes.

The attached code will perform a get_stylesheet request before the set_stylesheet request so it can pass along the prevstyle argument so the request goes through.