Python: Whats wrong with this class definition (indentation error)
<p>I can't seem to see what's wrong with this code, yet I get an <strong>IndentationError</strong> when I run the script.</p>

<pre><code>import web
import json

urls = (
    '/(.*)', 'handleRequest'
)
app = web.application(urls, globals())

class handleRequest:
    def GET(self, method_id):
        if not method_id: 
            return json.dumps({'ok':0})
        else:
            return json.dumps({'ok': method_id})

    def POST(self):
        i = web.input()
        pass

if __name__ == "__main__":
    app.run()
</code></pre>

<p>This is the console error messages I get when I attempt to run the script:</p>

<pre><code>&gt;&gt;&gt;     def POST(self):
  File "&lt;stdin&gt;", line 1
    def POST(self):
    ^
IndentationError: unexpected indent
&gt;&gt;&gt;         i = web.input()
  File "&lt;stdin&gt;", line 1
    i = web.input()
    ^
</code></pre>

<p>I have checked the indentation - and its the same 4 spaces I have used throughout the file - am I missing something?!</p>
