Commits

Lynn Rees  committed 492ed6a

- indent

  • Participants
  • Parent commits 88a05f0
  • Branches wsgiakismet

Comments (0)

Files changed (1)

 
 Simple usage example::
 
-import cgi
-from wsgiakismet import akismet
+    import cgi
+    from wsgiakismet import akismet
 
-# Wordpress API Key and website name are required arguments
+    # Wordpress API Key and website name are required arguments
 
-@akisimet('3489012ab121', 'http://blog.example.com/')
-def app(env, start_response):
-    usersub = cgi.parse(fp=env['wsgi.input'], environ=env)
-    start_response('200 OK', [('Content-type', 'text/plain')])
-    return ['Comment is %s' % usersub['comment'][0]]
+    @akisimet('3489012ab121', 'http://blog.example.com/')
+    def app(env, start_response):
+        usersub = cgi.parse(fp=env['wsgi.input'], environ=env)
+        start_response('200 OK', [('Content-type', 'text/plain')])
+        return ['Comment is %s' % usersub['comment'][0]]