Move code for status to reusable function
[mw] / src / mw / api.py
index c6958c28b52f0052de2536c144fcab600b91c12d..88dee80e2371e640253ce81658901ebc692acd5e 100644 (file)
@@ -1,6 +1,6 @@
 ###
 # mw - VCS-like nonsense for MediaWiki websites
-# Copyright (C) 2009  Ian Weller <ian@ianweller.org>
+# Copyright (C) 2010  Ian Weller <ian@ianweller.org>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,7 +23,9 @@ from StringIO import StringIO
 import urllib
 import urllib2
 
+
 class API(object):
+
     def __init__(self, api_url):
         self.api_url = api_url
         self.cookiejar = cookielib.CookieJar()
@@ -62,6 +64,7 @@ def pagename_to_filename(name):
     name = name.replace('/', '!')
     return name
 
+
 def filename_to_pagename(name):
     name = name.replace('!', '/')
     name = name.replace('_', ' ')

Benjamin Mako Hill || Want to submit a patch?