summaryrefslogtreecommitdiffstats
path: root/google_appengine/google/appengine/ext/preload/__init__.py
blob: ba1cee99df998e1f19d3a256a37aac8461173f29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

"""Preloads many modules to reduce loading time of third-party code."""




import os
_original_os_urandom = os.urandom
def os_urandom_replacement(n):
  raise NotImplementedError
os.urandom = os_urandom_replacement
import random
os.urandom = _original_os_urandom
random._urandom = _original_os_urandom

import BaseHTTPServer
import Bastion
import CGIHTTPServer
import ConfigParser
import Cookie
import DocXMLRPCServer
import HTMLParser
import MimeWriter
import Queue
import SimpleHTTPServer
import SimpleXMLRPCServer
import SocketServer
import StringIO
import UserDict
import UserList
import UserString
import aifc
import anydbm
import atexit
import audiodev
import base64
import bdb
import binhex
import bisect
import bz2
import calendar
import cgi
import cgitb
import chunk
import cmd
import code
import codecs
import codeop
import colorsys
import commands
import cookielib
import copy
import copy_reg
import csv
import datetime
import difflib
import dircache
import dis
import doctest
import dumbdbm
import filecmp
import fileinput
import fnmatch
import formatter
import fpformat
import ftplib
import getopt
import getpass
import gettext
import glob
import gzip
import heapq
import hmac
import htmlentitydefs
import htmllib
import httplib
import imaplib
import imghdr
import imputil
import inspect
import keyword
import linecache
import locale
import logging
import macpath
import macurl2path
import mailbox
import mailcap
import markupbase
import math
import md5
import mhlib
import mimetools
import mimetypes
import modulefinder
import multifile
import mutex
import netrc
import new
import nntplib
import ntpath
import nturl2path
import opcode
import optparse
import os2emxpath
import pdb
import pickle
import pickletools
import pipes
import pkgutil
import popen2
import poplib
import posixpath
import pprint
import profile
import pstats
import pyclbr
import pydoc
import quopri
import re
import repr
import rfc822
import robotparser
import sched
import sets
import sgmllib
import sha
import shelve
import shlex
import shutil
import site
import smtplib
import sndhdr
import socket
import stat
import statvfs
import string
import stringold
import stringprep
import struct
import sunau
import sunaudio
import symbol
import sys
import tabnanny
import tarfile
import telnetlib
import tempfile
import textwrap
import time
import timeit
import toaiff
import token
import tokenize
import trace
import traceback
import types
import unittest
import urllib
import urllib2
import urlparse
import uu
import uuid
import warnings
import wave
import weakref
import whichdb
import xdrlib
import xml.parsers.expat
import xml.dom
import xml.sax
import xmlrpclib
import zipfile
import zlib

import neo_cs
import neo_util
import webob
import wsgiref.handlers

from google.appengine.api import datastore
from google.appengine.api import images
from google.appengine.api import mail
from google.appengine.api import memcache
from google.appengine.api import urlfetch
from google.appengine.api import users

from google.appengine.ext import bulkload
from google.appengine.ext import db
from google.appengine.ext import gql
from google.appengine.ext import search
from google.appengine.ext import webapp

from google.appengine.runtime import apiproxy

if __name__ == '__main__':
  pass