summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Module review:Raymond Hettinger2003-02-261-40/+30
| | | | | | | * Replaced "while 1" with "while True" * Rewrote read() and readline() for clarity and speed. * Replaced variable 'list' with 'hlist' * Used augmented assignment in two places.
* The macfs, macostools, and plistlib should not be expected to runFred Drake2003-02-261-0/+33
| | | | | beyond Mac OS and Darwin. I'm not even sure they should be run on Darwin, but I'll let someone more knowledgable on that tell us.
* [Bug #668662] Patch from Pearu Pearson: if a C source file isAndrew M. Kuchling2003-02-261-0/+2
| | | | | | | specified with an absolute path, the object file is also written to an absolute path. The patch drops the drive and leading '/' from the source path, so a path like /path/to/foo.c results in an object file like build/temp.i686linux/path/to/foo.o.
* use bare raise so you get the original tbJust van Rossum2003-02-261-1/+1
|
* Port test_ucn and test_unicodedata to PyUnit. Add a few tests for errorWalter Dörwald2003-02-264-266/+337
| | | | | cases increasing coverage in unicodedata.c from 87% to 95% (when the normalization tests are run). From SF patch #662807.
* use the same Python for running the bootstrap script and the main programJust van Rossum2003-02-261-1/+9
|
* remove sitecustomize hack, will be solved elsewhereJust van Rossum2003-02-261-25/+0
|
* Let's try making the dialogs at least Movable Modal.Jack Jansen2003-02-251-0/+0
|
* If a resource file cannot be decoded because the directory is readonlyJack Jansen2003-02-252-44/+41
| | | | | | | | | | | create a temporary file. This fixes #688011. Got rid of the install() method in macresource, and replaced it with a resource_filename() method which will optionally decode a given resourcefile (which may be applesingle-encoded) and return the real resourcefile. Use this new method in buildtools to copy the correct resource file to the bundle. This fixes #688007.
* Reverted the rev. 1.8 change: the magic for decoding resourcefilesJack Jansen2003-02-251-4/+0
| | | | is now in buildtools.
* tweak error messageJust van Rossum2003-02-251-2/+2
|
* - renamed the --copyfile option to --file.Just van Rossum2003-02-251-4/+6
| | | | | - tweaked the help text a little. (Jack: up to you to change your client code.)
* added some comments, minor tweaksJust van Rossum2003-02-251-3/+34
|
* Resolving parts of #688907:Just van Rossum2003-02-251-9/+29
| | | | | | | | | | | | - Replaced bootstrap shell script with Python script. This means standalone apps built with bundlebuilder will not work on MacOS < 10.1, since we depend (again) on an installed Python. - Add a hack to set sys.executable; the bootstrap script does os.execve() with an argv[0] that's different from the actual Python executable (it has to match the CFBundleExecutable entry in the Info.plist to make the app work both from the Finder and the command line, and it has to be the bootstrap script), yet a proper sys.executable is needed to spawn auxiliary processes.
* typoSkip Montanaro2003-02-251-1/+1
|
* Workaround for bug #644243 (which is actually an Apple bug, I think): URLsJack Jansen2003-02-251-0/+4
| | | | | of the form file:/path/to/file don't work whereas file:///path/to/file works fine. We convert the former to the latter.
* Test suite for the plistlib module.Jack Jansen2003-02-251-0/+59
|
* Added a -c (--copyfile) option with argument src:dst which copies file srcJack Jansen2003-02-242-3/+12
| | | | into dst in the bundle. The Python API already had this functionality
* sys.executable can contain spaces, cater for this when passing it toJack Jansen2003-02-242-3/+3
| | | | os.popen(). Fixes #692222.
* Fix from SF patch #633359 by Greg Chapman for SF bug #610299:Guido van Rossum2003-02-242-1/+2
| | | | | | | | | The problem is in sre_compile.py: the call to _compile_charset near the end of _compile_info forgets to pass in the flags, so that the info charset is not compiled with re.U. (The info charset is used when searching to find the first character at which a match could start; it is not generated for patterns beginning with a repeat like '\w{1}'.)
* Get test to work on alphaNeal Norwitz2003-02-231-1/+1
|
* Fix SF bug #689659, 64-bit int and long hash keys incompatibleNeal Norwitz2003-02-231-0/+8
| | | | | On a 64-bit machine, a dictionary could contain duplicate int/long keys if the value was > 2**32.
* Expect to skip test_iconv_codecs on MacOSX.Jack Jansen2003-02-231-0/+1
|
* Fix SF bug #690081, test_posix fails when run in non-interactive modeNeal Norwitz2003-02-231-1/+8
| | | | | Don't bother testing os.getlogin() if we aren't running from a tty (terminal) It fails when run without a tty (e.g., when run from cron).
* Fix SF bug #691276, shutil.copytree documentation bugNeal Norwitz2003-02-231-3/+3
| | | | Also use True/False instead of 1/0 for symlink flag.
* User requested changes to the itertools module.Raymond Hettinger2003-02-231-11/+12
| | | | | Subsumed times() into repeat(). Added cycle() and chain().
* Getting rid of macfs.Jack Jansen2003-02-213-8/+6
|
* Get rid of macfs.Jack Jansen2003-02-211-60/+59
|
* Checking mac-specific stuff from the 2.3a2 branch in on the trunk.Jack Jansen2003-02-211-0/+1
|
* getpid doesn't exist on MacOS9.Jack Jansen2003-02-211-1/+4
|
* Remove _reduce_2, it's now implemented in C.Guido van Rossum2003-02-211-42/+5
|
* SF bug 690622: test_cpickle overflows stack on MacOS9.Tim Peters2003-02-211-1/+5
| | | | | | | | test_nonrecursive_deep(): Reduced nesting depth to 60. Not a bugfix candidate. 2.3 increased the number of stack frames needed to pickle a list (in order to get implement the "list batching" unpickling memory optimization new in 2.3).
* Doubled TimeoutTestCase.fuzz, to slash the frequency of bogus failuresTim Peters2003-02-211-1/+7
| | | | on the boxes I use.
* Port all string tests to PyUnit and share as much testsWalter Dörwald2003-02-216-935/+921
| | | | | | | between str, unicode, UserString and the string module as possible. This increases code coverage in stringobject.c from 83% to 86% and should help keep the string classes in sync in the future. From SF patch #662807
* SF bug #690083: test_random fails sometimesRaymond Hettinger2003-02-211-1/+1
| | | | | | time.sleep(1) sometimes delays for fractionally less than a second resulting in too short of an interval for C's time.time() function to create a distinct seed.
* announce(): use the level argument to control the log level.Guido van Rossum2003-02-201-1/+1
|
* set_verbosity(): do something reasonable for out-of-range verbosityGuido van Rossum2003-02-201-3/+3
| | | | levels. (Previously, -vvv would be the same as -q!)
* Include download_url in the data POSTed to the catalog serverAndrew M. Kuchling2003-02-191-0/+1
|
* [Patch #683939] Add download_url field to metadataAndrew M. Kuchling2003-02-192-2/+9
|
* [Patch #684398] Rename verbose argument to show-response; don't ↵Andrew M. Kuchling2003-02-191-9/+8
| | | | conditionalize the get_classifiers() call
* OS/2 has no concept of file ownership, like DOS & MS Windows versionAndrew MacIntyre2003-02-191-1/+2
| | | | | | prior to NT. EMX has a number of Posix emulation routines, including geteuid() but lacks chown(), so silently skip trying to actually set a file ownership when extracting a file from a tar archive.
* Reverted whitespace normalization on this file. I should really changeTim Peters2003-02-191-9/+10
| | | | | this thing so it doesn't rely on being unnormalized. (That's the editorial "I", if anyone's listening <wink>.)
* Removed debugging print in test_tarfile.Tim Peters2003-02-191-1/+0
| | | | | In the Windows installer, continued the endless battle to copy over files with new one-shot extensions.
* Whitespace normalization.Tim Peters2003-02-1926-114/+110
|
* Rename _better_reduce to _reduce_2, to make sure that any code thatGuido van Rossum2003-02-191-10/+5
| | | | | was still referencing it will fail. Also removed some debug cruft from _reduce_ex.
* Remove now unused _better_reduce.Guido van Rossum2003-02-191-1/+1
|
* Use __reduce_ex__ in copy.py. The test_*copy_cant() tests are simpler again.Guido van Rossum2003-02-193-33/+66
|
* Fix bug 683658 - PyErr_Warn may cause import deadlock.Mark Hammond2003-02-191-1/+4
|
* Enable argv emulation if required.Jack Jansen2003-02-181-2/+4
| | | | Fixed a bug for applets with their own plist files.
* Added an argv_emulation option (command line option: --argv or -a) whichJack Jansen2003-02-181-2/+36
| | | | | creates the sys.argv emulation wrapper for droplets. Also updates the plist, if needed, and the includedModules (but this last is untested).