Permalink
Browse files

cleanup

  • Loading branch information...
1 parent bce3ed7 commit b0ef29382ff201bfa2b03212ff4a222b58017b9d @anandology anandology committed Dec 6, 2008
Showing with 2 additions and 30 deletions.
  1. +2 −30 web/__init__.py
View
@@ -1,16 +1,13 @@
#!/usr/bin/env python
+"""web.py: makes web apps (http://webpy.org)"""
+
from __future__ import generators
-"""web.py: makes web apps (http://webpy.org)"""
__version__ = "0.3"
-__revision__ = "$Rev$"
__author__ = "Aaron Swartz <me@aaronsw.com>"
__license__ = "public domain"
__contributors__ = "see http://webpy.org/changes"
-# todo:
-# - some sort of accounts system
-
import utils, db, net, wsgi, http, webapi, httpserver, debugerror
import template, form
@@ -30,28 +27,3 @@
except ImportError:
pass # requires openid module
-def main():
- import doctest
-
- doctest.testmod(utils)
- doctest.testmod(db)
- doctest.testmod(net)
- doctest.testmod(wsgi)
- doctest.testmod(http)
- doctest.testmod(webapi)
-
- template.test()
-
- import sys
- urls = ('/web.py', 'source')
- class source:
- def GET(self):
- header('Content-Type', 'text/python')
- return open(sys.argv[0]).read()
-
- if listget(sys.argv, 1) != 'test':
- app = application(urls, locals())
- app.run()
-
-if __name__ == "__main__": main()
-

0 comments on commit b0ef293

Please sign in to comment.