import posixpath
import BaseHTTPServer
import urllib
-import urlparse
import cgi
import shutil
import mimetypes
"""
import os
-import sys
import errno
import shutil
import string
regression test suite.
"""
-import sys, os, string
+import os, string
import unittest
import tempfile
import unittest
import tempfile
-import sys, os, glob
+import os, glob
try:
# For Pythons w/distutils pybsddb
-import sys, os, string
+import os, string
import unittest
import glob
import tempfile
TestCases for checking dbShelve objects.
"""
-import sys, os, string
+import os, string
import tempfile, random
-from pprint import pprint
from types import *
import unittest
#
# $Id$
-import sys, os, re
+import os, re
import tempfile
import shutil
try:
"""
import os
-import sys
import tempfile
import glob
import unittest
TestCases for checking set_get_returns_none.
"""
-import sys, os, string
+import os, string
import tempfile
-from pprint import pprint
import unittest
try:
"""TestCases for using the DB.join and DBCursor.join_item methods.
"""
-import sys, os, string
+import os
import tempfile
-import time
-from pprint import pprint
try:
from threading import Thread, currentThread
TestCases for testing the locking sub-system.
"""
-import os
-from pprint import pprint
import shutil
-import sys
import tempfile
import time
"""
import os
-import sys
import unittest
import tempfile
-import sys, os, string
+import os
import pickle
try:
import cPickle
TestCases for exercising a Queue DB.
"""
-import sys, os, string
+import os, string
import tempfile
from pprint import pprint
import unittest
"""
import os
-import sys
import errno
import tempfile
from pprint import pprint
import unittest
import os
-import sys
import tempfile
import glob
except ImportError:
from bsddb import db
-from test_all import verbose
-
class DBSequenceTest(unittest.TestCase):
def setUp(self):
import errno
import shutil
import tempfile
-from pprint import pprint
from random import random
try:
import parser
import symbol
import token
-import sys
class WalkerError(StandardError):
pass
-import glob, os, sys, unittest, getopt, time
+import os, sys, unittest, getopt, time
use_resources = []
import unittest
-import sys
from ctypes import *
import unittest
-import os, sys
+import sys
from ctypes import *
from ctypes.util import find_library
from ctypes.test import is_resource_enabled
-import sys, os
import unittest
from ctypes import *
from ctypes import *
import sys, unittest
-import os, StringIO
+import os
from ctypes.util import find_library
from ctypes.test import is_resource_enabled
from ctypes import *
import unittest
-import sys, struct
+import struct
def valid_ranges(*types):
# given a sequence of numeric types, collect their _type_
"""
-import sys, curses
+import curses
def wrapper(func, *args, **kwds):
"""Wrapper function that initializes curses and calls another function,
__revision__ = "$Id$"
-import sys, os
+import os
from distutils.errors import \
DistutilsExecError, DistutilsPlatformError, \
CompileError, LibError, LinkError, UnknownFileError
__revision__ = "$Id$"
-import os, string
+import os
from types import *
from distutils.core import Command
from distutils.errors import *
import os
from distutils.core import Command
from distutils.util import get_platform
-from distutils.dir_util import create_tree, remove_tree, ensure_relative
+from distutils.dir_util import remove_tree, ensure_relative
from distutils.errors import *
from distutils.sysconfig import get_python_version
from distutils import log
Implements the bdist_msi command.
"""
-import sys, os, string
+import sys, os
from distutils.core import Command
from distutils.util import get_platform
from distutils.dir_util import remove_tree
__revision__ = "$Id$"
import sys, os, string
-import glob
from types import *
from distutils.core import Command
from distutils.debug import DEBUG
__revision__ = "$Id$"
-import sys, string, os
+import string, os
from types import *
from glob import glob
__revision__ = "$Id$"
-import sys, os, re
+import os, re
from stat import ST_MODE
from distutils import sysconfig
from distutils.core import Command
from distutils.file_util import write_file
from distutils.util import convert_path, subst_vars, change_root
from distutils.errors import DistutilsOptionError
-from glob import glob
if sys.version < "2.2":
WINDOWS_SCHEME = {
__revision__ = "$Id$"
-import os
from distutils.core import Command
__revision__ = "$Id$"
-import sys, os, string
+import os
from types import IntType
from distutils.core import Command
from distutils.errors import DistutilsOptionError
__revision__ = "$Id$"
-import sys, os, string, urllib2, getpass, urlparse
+import os, string, urllib2, getpass, urlparse
import StringIO, ConfigParser
from distutils.core import Command
__revision__ = "$Id$"
-import sys, os, string
+import os, string
from types import *
from glob import glob
from distutils.core import Command
import os, string, re
import fnmatch
from types import *
-from glob import glob
from distutils.util import convert_path
from distutils.errors import DistutilsTemplateError, DistutilsInternalError
from distutils import log
import distutils.cmd
import distutils.dist
import os
-import shutil
import StringIO
import sys
-import tempfile
import unittest
from test.test_support import TESTFN
from distutils import sysconfig
import os
-import sys
import unittest
from test.test_support import TESTFN
import os, sys
from types import StringType, NoneType
-from copy import copy
from distutils import sysconfig
from distutils.dep_util import newer
'header_encode',
]
-import re
from binascii import b2a_base64, a2b_base64
from email.utils import fix_eols
import socket
import urllib
import warnings
-from cStringIO import StringIO
from email._parseaddr import quote
from email._parseaddr import AddressList as _AddressList
import os.path
import parser
import symbol
-import sys
from _hotshot import \
WHAT_ENTER, \
import errno
import hotshot
import hotshot.stats
-import os
import sys
import test.pystone
Req-sent-unread-response _CS_REQ_SENT <response_class>
"""
-import errno
import mimetools
import socket
from urlparse import urlsplit
"""
import sys
-import os
import string
import re
import Tkinter
"""
-import sys
import types
import rpc
import Debugger
# - optimize tree redraw after expand of subnode
import os
-import sys
from Tkinter import *
import imp
-import sys
import string
from Tkinter import *
from Delegator import Delegator
"""
from Tkinter import *
import tkMessageBox, tkColorChooser, tkFont
-import string, copy
+import string
from configHandler import idleConf
from dynOptionMenuWidget import DynOptionMenu
"""
from Tkinter import *
import tkMessageBox
-import string, os
+import string
class GetKeysDialog(Toplevel):
def __init__(self,parent,title,action,currentKeySequences):
import sys
-import os
import linecache
import time
import socket
'''
from Tkinter import *
-import os
class Dialog(Toplevel):
To use, simply 'import logging' and log away!
"""
-import sys, logging, socket, types, os, string, cPickle, struct, time, glob
+import logging, socket, types, os, string, cPickle, struct, time, glob
from stat import ST_DEV, ST_INO
try:
"""
import os
-import stat
import sys
+import stat
import genericpath
from genericpath import *
only suitable for the simplest of AppleEvent servers.
"""
-import sys
import traceback
import MacOS
from Carbon import AE
#
import struct
-import string
import types
-from string import strip
from types import *
from Carbon import AE
from Carbon.AppleEvents import *
import MacOS
import Carbon.File
-import StringIO
import aetypes
from aetypes import mkenum, ObjectSpecifier
-import os
# These ones seem to be missing from AppleEvents
# (they're in AERegistry.h)
# but mac-style for MacPython, whether running on OS9 or OSX.
#
-import sys, os
+import os
Error = "bgenlocations.Error"
#
from Carbon import Res
from Carbon import File, Files
import os
-import sys
import MacOS
-import time
try:
openrf = MacOS.openrf
except AttributeError:
import string
import urllib
-import os
__all__ = ["url2pathname","pathname2url"]
# misrepresented as being the original software.
# 3. This notice may not be removed or altered from any source distribution.
-import os, unittest
+import unittest
import sqlite3 as sqlite
class CollationTests(unittest.TestCase):
PROTOCOL_TLSv1
"""
-import os, sys, textwrap
+import textwrap
import _ssl # if we can't import it, let the error propagate
"""
import os, sys, time, thread, unittest
-from test.test_support import TestSkipped
LONGSLEEP = 2
SHORTSLEEP = 0.5
import sys
import os
-import unittest
from test import test_support, seq_tests
class CommonTest(seq_tests.CommonTest):
"""
import unittest
-from test import test_support
import sys
# Various iterables
"""
-import unittest, sys, StringIO
+import unittest, StringIO
from test.test_support import run_unittest
import warnings
import unittest
-from test.test_support import verbose, run_unittest
+from test.test_support import run_unittest
import sys
import warnings
"""Unit tests for abc.py."""
-import sys
import unittest
from test import test_support
import Carbon.File
import MacOS
import os
-import sys
from test import test_support
import struct
import applesingle
import unittest
from test import test_support
from weakref import proxy
-import array, cStringIO, math
+import array, cStringIO
from cPickle import loads, dumps
class ArraySubclass(array.array):
testing suite.
"""
-from test.test_support import verbose, run_unittest, findfile
+from test.test_support import run_unittest, findfile
import unittest
import bsddb185
import anydbm
"Test the functionality of Python classes implementing operators."
import unittest
-import sys
from test import test_support
"""
-from test import test_support
import cmd
import sys
from test import test_support, test_cmd
test_support.run_doctest(test_cmd, verbose)
-import trace, sys,re,StringIO
+import trace, sys
def test_coverage(coverdir):
tracer=trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix,],
trace=0, count=1)
import copy
-import sys
import warnings
import unittest
from test.test_support import run_unittest, TestFailed
-import sys
import unittest
from test import test_support
compiler.compile(buf, basename, "exec")
except Exception, e:
args = list(e.args)
- args[0] += "[in file %s]" % basename
+ args.append("in file %s]" % basename)
+ #args[0] += "[in file %s]" % basename
e.args = tuple(args)
raise
"""Unit tests for the copy module."""
-import sys
import copy
import copy_reg
import cPickle
-import unittest
from cStringIO import StringIO
from test.pickletester import AbstractPickleTests, AbstractPickleModuleTests
from test import test_support
"""
import os
-import sys
import pickle
import cPickle
import unittest
Roger E. Masse
"""
import os
-import random
import dbm
from dbm import error
from test.test_support import verbose, verify, TestSkipped, TESTFN
from weakref import proxy
import copy
import cPickle as pickle
-from cStringIO import StringIO
import random
import os
import unittest
from test import test_support
-import sys, UserDict, cStringIO, random, string
+import UserDict, random, string
class DictTest(unittest.TestCase):
# Minimal tests for dis module
-from test.test_support import verbose, run_unittest
+from test.test_support import run_unittest
import unittest
import sys
import dis
from test import test_doctest
test_support.run_doctest(test_doctest, verbosity=True)
-import trace, sys, re, StringIO
+import trace, sys
def test_coverage(coverdir):
tracer = trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix,],
trace=0, count=1)
# Create a bunch of threads, let each do some work, wait until all are done
from test.test_support import verbose
-import random
import dummy_threading as _threading
import time
# Copyright (C) 2001,2002 Python Software Foundation
# email package unit tests
-import unittest
# The specific tests now live in Lib/email/test
from email.test.test_email import suite
from test import test_support
# Copyright (C) 2001-2006 Python Software Foundation
# email package unit tests
-import unittest
# The specific tests now live in Lib/email/test
from email.test.test_email_renamed import suite
from test import test_support
#! /usr/bin/env python
"""test script for a few new invalid token catches"""
-import os
import unittest
from test import test_support
-from test.test_support import verify, verbose, TestFailed, sortdict
+from test.test_support import verify, TestFailed, sortdict
from UserList import UserList
from UserDict import UserDict
import unittest
from test.test_support import verbose, TESTFN, run_unittest
from test.test_support import unlink as safe_unlink
-import sys, os, re
+import sys, re
from StringIO import StringIO
from fileinput import FileInput, hook_encoded
"""Tests for Lib/fractions.py."""
from decimal import Decimal
-from test.test_support import run_unittest, verbose
+from test.test_support import run_unittest
import math
import operator
import fractions
import unittest
from test import test_support
-import sys
-import warnings, re
+import warnings
warnings.filterwarnings("ignore",
category=DeprecationWarning,
message=".*integer argument expected, got float",
import unittest
from test import test_support
-import sys, os
+import os
import gzip
import HTMLParser
import pprint
-import sys
import unittest
from test import test_support
import httplib
import StringIO
-import sys
import socket
from unittest import TestCase
from test.test_support import verbose, unlink, findfile
-import imgfile, uu, os
+import imgfile, uu
def main():
import imp
-import thread
import unittest
from test import test_support
import unittest
from test import test_support
import operator
-import sys
from sys import maxint
maxsize = test_support.MAX_Py_ssize_t
minsize = -maxsize-1
from test.test_support import findfile, TestSkipped, run_unittest
import errno
-import fcntl
import linuxaudiodev
-import os
import sys
-import select
import sunaudio
-import time
import audioop
import unittest
-import unittest
import sys
from test import test_support, list_tests
<BLANKLINE>
"""
import select
-import os, sys, string, struct, types, cPickle, cStringIO
-import socket, tempfile, threading, time
+import os, sys, string, struct, cPickle, cStringIO
+import socket, threading
import logging, logging.handlers, logging.config, test.test_support
import os
import sys
import pickle
-import traceback
from StringIO import StringIO
from test.test_support import verbose, run_unittest, TestSkipped
import unittest
# Test the module type
import unittest
-from test.test_support import verbose, run_unittest
+from test.test_support import run_unittest
import sys
ModuleType = type(sys)
import __future__
-import sys, os
+import os
import unittest
import distutils.dir_util
import tempfile
# Common Unittest Routines for CJK codecs
#
-import sys, codecs, os.path
+import sys, codecs
import unittest, re
from test import test_support
from StringIO import StringIO
import unittest
from StringIO import StringIO
-from pprint import pprint
from test import test_support
from test import test_support
test_support.requires('audio')
-from test.test_support import verbose, findfile, TestSkipped
+from test.test_support import findfile, TestSkipped
import errno
-import fcntl
import ossaudiodev
-import os
import sys
-import select
import sunaudio
import time
import audioop
import pickle
-import unittest
from cStringIO import StringIO
from test import test_support
import os
import tempfile
import textwrap
-import traceback
import unittest
from test import test_support
import unittest
import plistlib
import os
-import time
import datetime
from test import test_support
# Test case for the os.poll() function
-import sys, os, select, random, unittest
+import os, select, random, unittest
from test.test_support import TestSkipped, TESTFN, run_unittest
try:
import time
import os
-import sys
import unittest
import warnings
warnings.filterwarnings('ignore', '.* potential security risk .*',
Nick Mathewson
'''
from test.test_support import run_unittest
-import unittest, sys
+import sys
from types import ClassType, FunctionType, MethodType, BuiltinFunctionType
import pyclbr
from unittest import TestCase
from test import test_support
import unittest
-import sys, os, cStringIO, subprocess
+import sys, cStringIO, subprocess
import quopri
import unittest
from test import test_support
-import os
import resource
import time
import rfc822
-import sys
import unittest
from test import test_support
# Copyright (C) 2003 Python Software Foundation
import unittest
-import os
-import sys
-import tempfile
from test import test_support
import aetools
-import htmlentitydefs
import pprint
import re
import sgmllib
try:
events = self.get_events(source)
except:
- import sys
+ #import sys
#print >>sys.stderr, pprint.pformat(self.events)
raise
if events != expected_events:
# -*- coding: iso-8859-1 -*-
import unittest
-import os, sys
import shlex
from test import test_support
"""
import unittest
-from test.test_support import TestSkipped, TestFailed, run_unittest, TESTFN
+from test.test_support import TestSkipped, run_unittest, TESTFN
import __builtin__
import os
import sys
import encodings
-import tempfile
# Need to make sure to not import 'site' if someone specified ``-S`` at the
# command-line. Detect this by just making sure 'site' has not been imported
# already.
import select
import time
import threading
-from functools import wraps
import unittest
import SocketServer
from test.test_support import run_unittest, TestSkipped
-import unittest
try:
import _sqlite3
-import unittest
import struct
import sys
from test import test_support, string_tests
# Sanity checker for time.strftime
-import time, calendar, sys, os, re
+import time, calendar, sys, re
from test.test_support import verbose
def main():
-from test.test_support import verbose, findfile, TestFailed, TestSkipped
+from test.test_support import findfile, TestFailed, TestSkipped
import sunaudiodev
import os
import os
import os.path
import warnings
-import types
import unittest
class Error(Exception):
-import unittest
from test import test_support, seq_tests
class TupleTest(seq_tests.CommonTest):
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
"""#"
-import unittest, sys, struct, codecs, new
+import sys, struct, codecs
from test import test_support, string_tests
# Error handling (bad decoder return)
__test__ = {'doctests' : doctests}
def test_main(verbose=False):
- import sys
from test import test_support
from test import test_unpack
test_support.run_doctest(test_unpack, verbose)
import mimetools
import tempfile
import StringIO
-import ftplib
-import threading
-import socket
-import time
def hexescape(char):
"""Escape char as RFC 2396 specifies"""
import unittest
from test import test_support
-import os, socket
+import os
import StringIO
import urllib2
self.assertEqual(int(headers["Content-length"]), len(data))
def test_file(self):
- import time, rfc822, socket
+ import rfc822, socket
h = urllib2.FileHandler()
o = h.parent = MockOpener()
def _test_basic_auth(self, opener, auth_handler, auth_header,
realm, http_handler, password_manager,
request_url, protected_url):
- import base64, httplib
+ import base64
user, password = "wile", "coyote"
# .add_password() fed through to password manager
#!/usr/bin/env python
-import sys
import threading
import urlparse
import urllib2
# Check every path through every method of UserDict
-import unittest
from test import test_support, mapping_tests
import UserDict
# Check every path through every method of UserList
from UserList import UserList
-import unittest
from test import test_support, list_tests
class UserListTest(list_tests.CommonTest):
# UserString is a wrapper around the native builtin string type.
# UserString instances should behave similar to builtin string objects.
-import unittest
import string
from test import test_support, string_tests
import sys, os, uu, cStringIO
import uu
-from StringIO import StringIO
plaintext = "The smooth-scaled python crept over the sleeping dog\n"
import unittest
import whichdb
import anydbm
-import tempfile
import glob
_fname = test.test_support.TESTFN
# all included components work as they should. For a more extensive
# test suite, see the selftest script in the ElementTree distribution.
-import doctest, sys
+import doctest
+import sys
from test import test_support
# xml.etree test for cElementTree
-import doctest, sys
+import doctest
+import sys
from test import test_support
import pickle
import cPickle
-import unittest
from test import test_support
from test.pickletester import AbstractPickleTests
import time
import sys
-from StringIO import StringIO
from tempfile import TemporaryFile
from test.test_support import TESTFN, run_unittest
from Carbon import Win
from Carbon import Controls
from Carbon import List
-import sys
-import struct
from Carbon import Icn
import macresource
from Carbon import Win
from Carbon import Controls
from Carbon import List
-import sys
import struct
import macresource
from Carbon import Win
from Carbon import Controls
from Carbon import List
-import sys
import struct
import macresource
from Carbon import Win
from Carbon import Controls
from Carbon import List
-import sys
-import struct
from Carbon import Icn
import macresource
from Carbon import Qd
from Carbon import Win
from Carbon import List
-import sys
import struct
import macresource
import EasyDialogs
from Carbon import Res
from Carbon import Dlg
-import sys
import socket
import string
import macresource
import EasyDialogs
from Carbon import Res
from Carbon import Dlg
-import sys
import socket
import string
import macresource
from Carbon import QuickDraw
from Carbon import Win
#ifrom Carbon mport List
-import sys
import struct
import img
import imgformat
-import struct
import mac_image
"""mac_image - Helper routines (hacks) for images"""
import imgformat
from Carbon import Qd
-import time
import struct
import MacOS
-import sys, math, audiodev
+import sys, math
DOT = 30
DAH = 80
# (Should learn how to tell the compiler to compile it as well.)
import sys
-import os
-import string
import MacOS
from bgenlocations import TOOLBOXDIR, BGENDIR
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner_OSX
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
# IBCarbonscan.py
import sys
-import os
-import string
import MacOS
import sys
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner_OSX
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner_OSX
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
# Scan <Controls.h>, generating ctlgen.py.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
# Scan <Drag.h>, generating draggen.py.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR, INCLUDEDIR
sys.path.append(BGENDIR)
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner_OSX
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner_OSX
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
# IBCarbonscan.py
import sys
-import os
-import string
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
# Scan <Menus.h>, generating menugen.py.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner_OSX
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
# (Should learn how to tell the compiler to compile it as well.)
import sys
-import os
-import string
import MacOS
from bgenlocations import TOOLBOXDIR, BGENDIR
# generates a boilerplate to be edited by hand.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
# (Should learn how to tell the compiler to compile it as well.)
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
# Scan an Apple header file, generating a Python file of generator calls.
import sys
-import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
__version__ = "special BeOS after 1.37"
-import sys, os, getopt
+import sys, os
from distutils import sysconfig
from distutils import text_file
from distutils.errors import *
import os
import sys
-import shutil
here = os.path.abspath(os.path.dirname(__file__))
par = os.path.pardir
import os
import sys
-import shutil
here = os.path.abspath(os.path.dirname(__file__))
par = os.path.pardir
# TO DO
# handle fields that have a type but no name
-import os, sys, traceback
+import os, sys
import asdl
__version__ = 'SPARK-0.7 (pre-alpha-5)'
import re
-import sys
import string
def _namelist(instance):
"""
import fileinput
-import getopt
import re
import sys
from StringIO import StringIO
#! /usr/bin/env python
import marshal
-import os
import dis
import types
try:
FAQDIR = "/usr/people/guido/python/FAQ"
SRCDIR = "/usr/people/guido/python/src/Tools/faqwiz"
- import os, sys, time, operator
+ import os, sys
os.chdir(FAQDIR)
sys.path.insert(0, SRCDIR)
import faqwiz
0, 'Save', 'Save as text')
def _test():
- import sys
global mainWidget
mainWidget = Frame()
Pack.config(mainWidget)
the author. All Rights Reserved.
"""
-import time, sys, struct
+import time, sys
#
# Note: Please keep this module compatible to Python 1.5.2.
selected and nearest ChipWidgets.
"""
-from types import StringType
from Tkinter import *
import ColorDB
you must hit Return or Tab to select the color.
"""
-import sys
-import re
from Tkinter import *
from their output.
"""
-import os, sys, errno, getopt, re
+import sys, errno, getopt, re
sep1 = '='*77 + '\n' # file separator
sep2 = '-'*28 + '\n' # revision separator
option to produce this format (since it is the original v7 Unix format).
"""
-import os,re,sys
+import os, sys
PYTHONLIB = 'libpython'+sys.version[:3]+'.a'
PC_PYTHONLIB = 'Python'+sys.version[0]+sys.version[2]+'.dll'
TABSIZE = 8
EXPANDTABS = 0
-import os
import re
import sys
__all__ = ["has_python_ext", "looks_like_python", "can_be_compiled", "walk_python_files"]
-import sys, os, re
+import os, re
binary_re = re.compile('[\x00-\x08\x0E-\x1F\x7F]')
import sys
import os
from stat import *
-import commands
import fnmatch
EXECMAGIC = '\001\140\000\010'
#
# By Bill Janssen.
-import sys, os
+import sys
def fetch_server_certificate (host, port):
"""#"
-import re, os, time, marshal, codecs
+import re, os, marshal, codecs
# Maximum allowed size of charmap tables
MAX_TABLE_SIZE = 8192
from Tkinter import *
import tktools
import webchecker
-import random
# Override some for a weaker platform
if sys.platform == 'mac':
"""
from Tkinter import *
-import Tkinter
import websucker
-import sys
import os
import threading
import Queue