thirdparty/google_appengine/google/appengine/ext/preload/__init__.py
changeset 109 620f9b141567
child 2413 d0b7dac5325c
equal deleted inserted replaced
108:261778de26ff 109:620f9b141567
       
     1 #!/usr/bin/env python
       
     2 #
       
     3 # Copyright 2007 Google Inc.
       
     4 #
       
     5 # Licensed under the Apache License, Version 2.0 (the "License");
       
     6 # you may not use this file except in compliance with the License.
       
     7 # You may obtain a copy of the License at
       
     8 #
       
     9 #     http://www.apache.org/licenses/LICENSE-2.0
       
    10 #
       
    11 # Unless required by applicable law or agreed to in writing, software
       
    12 # distributed under the License is distributed on an "AS IS" BASIS,
       
    13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
    14 # See the License for the specific language governing permissions and
       
    15 # limitations under the License.
       
    16 #
       
    17 
       
    18 """Preloads many modules to reduce loading time of third-party code."""
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 import os
       
    24 _original_os_urandom = os.urandom
       
    25 def os_urandom_replacement(n):
       
    26   raise NotImplementedError
       
    27 os.urandom = os_urandom_replacement
       
    28 import random
       
    29 os.urandom = _original_os_urandom
       
    30 random._urandom = _original_os_urandom
       
    31 
       
    32 import BaseHTTPServer
       
    33 import Bastion
       
    34 import CGIHTTPServer
       
    35 import ConfigParser
       
    36 import Cookie
       
    37 import DocXMLRPCServer
       
    38 import HTMLParser
       
    39 import MimeWriter
       
    40 import Queue
       
    41 import SimpleHTTPServer
       
    42 import SimpleXMLRPCServer
       
    43 import SocketServer
       
    44 import StringIO
       
    45 import UserDict
       
    46 import UserList
       
    47 import UserString
       
    48 import aifc
       
    49 import anydbm
       
    50 import atexit
       
    51 import audiodev
       
    52 import base64
       
    53 import bdb
       
    54 import binhex
       
    55 import bisect
       
    56 import bz2
       
    57 import calendar
       
    58 import cgi
       
    59 import cgitb
       
    60 import chunk
       
    61 import cmd
       
    62 import code
       
    63 import codecs
       
    64 import codeop
       
    65 import colorsys
       
    66 import commands
       
    67 import cookielib
       
    68 import copy
       
    69 import copy_reg
       
    70 import csv
       
    71 import datetime
       
    72 import difflib
       
    73 import dircache
       
    74 import dis
       
    75 import doctest
       
    76 import dumbdbm
       
    77 import filecmp
       
    78 import fileinput
       
    79 import fnmatch
       
    80 import formatter
       
    81 import fpformat
       
    82 import ftplib
       
    83 import getopt
       
    84 import getpass
       
    85 import gettext
       
    86 import glob
       
    87 import gzip
       
    88 import heapq
       
    89 import hmac
       
    90 import htmlentitydefs
       
    91 import htmllib
       
    92 import httplib
       
    93 import imaplib
       
    94 import imghdr
       
    95 import imputil
       
    96 import inspect
       
    97 import keyword
       
    98 import linecache
       
    99 import locale
       
   100 import logging
       
   101 import macpath
       
   102 import macurl2path
       
   103 import mailbox
       
   104 import mailcap
       
   105 import markupbase
       
   106 import math
       
   107 import md5
       
   108 import mhlib
       
   109 import mimetools
       
   110 import mimetypes
       
   111 import modulefinder
       
   112 import multifile
       
   113 import mutex
       
   114 import netrc
       
   115 import new
       
   116 import nntplib
       
   117 import ntpath
       
   118 import nturl2path
       
   119 import opcode
       
   120 import optparse
       
   121 import os2emxpath
       
   122 import pdb
       
   123 import pickle
       
   124 import pickletools
       
   125 import pipes
       
   126 import pkgutil
       
   127 import popen2
       
   128 import poplib
       
   129 import posixpath
       
   130 import pprint
       
   131 import profile
       
   132 import pstats
       
   133 import pyclbr
       
   134 import pydoc
       
   135 import quopri
       
   136 import re
       
   137 import repr
       
   138 import rfc822
       
   139 import robotparser
       
   140 import sched
       
   141 import sets
       
   142 import sgmllib
       
   143 import sha
       
   144 import shelve
       
   145 import shlex
       
   146 import shutil
       
   147 import site
       
   148 import smtplib
       
   149 import sndhdr
       
   150 import socket
       
   151 import stat
       
   152 import statvfs
       
   153 import string
       
   154 import stringold
       
   155 import stringprep
       
   156 import struct
       
   157 import sunau
       
   158 import sunaudio
       
   159 import symbol
       
   160 import sys
       
   161 import tabnanny
       
   162 import tarfile
       
   163 import telnetlib
       
   164 import tempfile
       
   165 import textwrap
       
   166 import time
       
   167 import timeit
       
   168 import toaiff
       
   169 import token
       
   170 import tokenize
       
   171 import trace
       
   172 import traceback
       
   173 import types
       
   174 import unittest
       
   175 import urllib
       
   176 import urllib2
       
   177 import urlparse
       
   178 import uu
       
   179 import uuid
       
   180 import warnings
       
   181 import wave
       
   182 import weakref
       
   183 import whichdb
       
   184 import xdrlib
       
   185 import xml.parsers.expat
       
   186 import xml.dom
       
   187 import xml.sax
       
   188 import xmlrpclib
       
   189 import zipfile
       
   190 import zlib
       
   191 
       
   192 import django
       
   193 import neo_cs
       
   194 import neo_util
       
   195 import webob
       
   196 import wsgiref.handlers
       
   197 
       
   198 from google.appengine.api import datastore
       
   199 from google.appengine.api import images
       
   200 from google.appengine.api import mail
       
   201 from google.appengine.api import memcache
       
   202 from google.appengine.api import urlfetch
       
   203 from google.appengine.api import users
       
   204 
       
   205 from google.appengine.ext import admin
       
   206 from google.appengine.ext import bulkload
       
   207 from google.appengine.ext import db
       
   208 from google.appengine.ext import gql
       
   209 from google.appengine.ext import search
       
   210 from google.appengine.ext import webapp
       
   211 from google.appengine.ext.webapp import template
       
   212 
       
   213 from google.appengine.runtime import apiproxy
       
   214 
       
   215 if __name__ == '__main__':
       
   216   pass