diff -r 261778de26ff -r 620f9b141567 thirdparty/google_appengine/google/appengine/ext/preload/__init__.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/thirdparty/google_appengine/google/appengine/ext/preload/__init__.py Tue Aug 26 21:49:54 2008 +0000 @@ -0,0 +1,216 @@ +#!/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 django +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 admin +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.ext.webapp import template + +from google.appengine.runtime import apiproxy + +if __name__ == '__main__': + pass