praw-dev/praw — pull request #126 by Fluxflashor (2012-09-14 18:48: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.

PS. sorry for the earlier pull request, it wanted to delete the whole file and create it again. oops.