summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Revamped 'get_platform()' to try and do something reasonably smart onGreg Ward2000-09-151-4/+42
| | | | POSIX platforms, ie. get a little more detail than 'sys.platform' gives.
* Changed from eager parsing of Makefile (at import time) to lazy: only doGreg Ward2000-09-151-25/+63
| | | | | | | | | | | | | | | all that work when someone asks for a "configuration variable" from the Makefile. Details: - added 'get_config_vars()': responsible for calling one of the '_init_*()' functions to figure things out for this platform, and to provide an interface to the resulting dictionary - added 'get_config_var()' as a simple interface to the dictionary loaded by 'get_config_vars()' - changed the '_init_*()' functions so they load the global dictionary '_config_vars', rather than spewing their findings all over the module namespace - don't delete the '_init_*()' functions when done importing - adjusted 'customize_compiler()' to the new regime
* Fixed so 'parse_makefile()' uses the TextFile class to ensure thatGreg Ward2000-09-151-6/+8
| | | | | comments are stripped and lines are joined according to the backslash convention.
* cope with weird Content-Length values returned from servers byJeremy Hylton2000-09-141-1/+4
| | | | ignoring them; e.g. Zope sometimes returns 13497L
* Remove "," from the list of always_safe characters. It is a reservedJeremy Hylton2000-09-142-8/+62
| | | | | | | | | | character according to RFC 2396. Add some text to quote doc string that explains the quoting rules better. This closes SF Bug #114427. Add _fast_quote operation that uses a dictionary instead of a list when the standard set of safe characters is used.
* Detlef Lannert <lannert@uni-duesseldorf.de>:Fred Drake2000-09-141-2/+2
| | | | | | | | | | | | | mailbox.py (from the CVS tree) doesn't work with qmail Maildirs: Filenames are completed when the directories are scanned, and the directory name is prepended again in the next() method. Another suggestion: Change the print statement in the _test() driver to show two more date characters (probably the length has increased due to the recent Y2K hype ;). Now it shows the complete date, including the seconds -- at least for me. (I've also made the sender field left justified, in case it is ever shorter than the field width).
* Added --force (-f) option to force installation (including bytecodeGreg Ward2000-09-135-4/+20
| | | | compilation).
* Bump version to 0.9.3pre.Greg Ward2000-09-131-1/+1
|
* Fix install directories on Mac OS: now everything goes toGreg Ward2000-09-131-2/+2
| | | | <prefix>:Lib:site-packages.
* Bastian Kleineidam: fix so it cleans up the temporary script-buildingGreg Ward2000-09-121-20/+13
| | | | directory too. Also generally cleaned up the code.
* Deleted ancient file.Guido van Rossum2000-09-111-410/+0
|
* Untabify. When compiling in -tt mode, an inconsistent Tab use errorFred Drake2000-09-111-408/+407
| | | | was raised. This occurred during installation.
* Delete some debugging prints.Greg Ward2000-09-111-2/+0
|
* Added --plat-name option to override sysconfig.get_platform() inGreg Ward2000-09-112-4/+18
| | | | generated filenames.
* Added --python and --fix-python options for better control over whatGreg Ward2000-09-101-16/+33
| | | | | interpreter the .spec file refers to. Cosmetic tweaks.
* The installer now displays info about version of distutilsThomas Heller2000-09-091-263/+278
| | | | | | | | used to create the distribution and the creation date. Takes care of the extra_path argument to the setup function, installs the modules into <prefix>/extra_path and creates a -pth file (like install_lib does).
* The windows installer must also look under the HKEY_CURRENT_USER keyThomas Heller2000-09-091-240/+240
| | | | for python installations, not only under HKEY_LOCAL_MACHINE.
* Do not try to fix bugs while sleeping.Fred Drake2000-09-091-4/+0
| | | | | | | | Paid more attention to the comments on the report; Martin suggested just not having a __del__() method, which makes more sense in this case. So I have removed it. This closes SourceForge bug #113850. Again.
* Kevin Jacobs <jacobs@darwin.cwru.edu>:Fred Drake2000-09-091-1/+2
| | | | | | | | The posixfile __del__ method attempts to close the file (_file_) it contains. However, if the open() method fails, then _file_ is never assigned. This closes SourceForge bug #113850.
* Match Sam Rushing's current version of asyncore.py and asynchat.pyAndrew M. Kuchling2000-09-082-81/+126
| | | | (SF patch 101447, fixing PR#113704)
* Add test cases to make sure we get the right SyntaxError message forFred Drake2000-09-082-0/+59
| | | | various illegal uses of "continue".
* Fix for bug 110629: Generate unique image names by introducing a counterMartin v. Löwis2000-09-081-1/+3
|
* Changes:Thomas Heller2000-09-071-273/+298
| | | | | | | | | | | | | | | | | | | | | | | | | distutils/command/bdist_wininst.py: - the windows installer is again able to compile after installing the files. Note: The default has changed, the packager has to give --no-target-compile/--no-target-optimize to NOT compile on the target system. (Another note: install_lib's --compile --optimize options have the same semantics to switch off the compilation. Shouldn't the names change?) - All references to specific python versions are gone. - A small bug: raise DistutilsPlatformError ("...") instead of raise DistutilsPlatformError, ("...") - When bdist_wininst creates an installer for one specific python version, this is reflected in the name: Distutils-0.9.2.win32-py15.exe instead of Distutils-0.9.2.win32.exe - bdist_wininst, when run as script, reads the wininst.exe file and rewrites itself. Previously this was done by hand. misc/install.c - All the changes needed for compilation - Deleted a lot of debug/dead code
* Older Tk versions don't support mousewheel support. Set event.deltaFredrik Lundh2000-09-071-1/+4
| | | | to zero if that's the case (closes bug #113727)
* Added Unicode objects to the copy mechanism. Since these are immutable,Marc-André Lemburg2000-09-071-0/+2
| | | | they are copied as atomic types.
* Typo fix.Greg Ward2000-09-071-1/+1
|
* Removing this file again to set its status to 'dead'.Guido van Rossum2000-09-071-1570/+0
|
* Bullet-proofing of 'make_release_tree()':Greg Ward2000-09-061-6/+14
| | | | | | - 'mkpath()' the distribution dir in case of empty manifest - warn if empty manifest - detect, warn about, and skip non-regular files in manifest
* Reorganized logic in 'get_file_list()' so it's easier to read, and fixed aGreg Ward2000-09-061-7/+8
| | | | | bug to boot: now works even if both MANIFEST and MANIFEST.in don't exist. Don't hardcode setup.py, use 'self.distribution.script_name'.
* Typo fix.Greg Ward2000-09-062-2/+2
|
* The usual.Guido van Rossum2000-09-055-23/+30
|
* Add new builtin commands "copyright", "license", "credits" whichGuido van Rossum2000-09-051-1/+52
| | | | display the information you would expect them to display.
* For this server to work on Windows, directories should use "/" as theGuido van Rossum2000-09-041-2/+3
| | | | | | | | separator in the href, not os.sep. Added a <title> tag to directory listings. Bumped version to 0.5.
* test_mmap wrote null bytes into its expected-output file; this caused me toTim Peters2000-09-042-2/+1
| | | | | | | | | | | waste an hour tracking down an illusion; repaired it; writing/reading non- printable characters (except \t\r\n) into/outof text-mode files ain't defined x-platform, and at least some Windows text editors do surprising things in their presence. Also added a by-hand "build humber" to the Windows build, in an approximation of Python's inexplicable BUILD-number Unix scheme. I'll try to remember to increment it each time I make a Windows installer available. It's starting at 2, cuz I've put 2 installers out so far (both with BUILD #0).
* Correct docstring about return value when group didn't participate in matchAndrew M. Kuchling2000-09-041-4/+4
| | | | (pointed out by /F)
* Hack the Windows code to use os.popen().Guido van Rossum2000-09-031-3/+1
| | | | | The returned file is assigned to an instance variable; otherwise the implied close hangs for a long time.
* updated SRE test suite (fixes PEP223 problem, shows syntax errors)Fredrik Lundh2000-09-031-76/+78
|
* Repair failing test_sre.py.Tim Peters2000-09-031-3/+3
| | | | | | | | | This was a funny one! The test very subtly relied on 1.5.2's behavior of treating "\x%" as "\x%", i.e. ignoring that was an \x escape that didn't make sense. But /F implemented PEP 223, which causes 2.0 to raise an exception on the bad escape. Fixed by merely making the 3 such strings of this kind into raw strings.
* return -1 for undefined groups (as implemented in 1.5.2) instead ofFredrik Lundh2000-09-021-1/+6
| | | | None (as documented) from start/end/span. closes bug #113254
* -- tightened up parsing of octal numbersFredrik Lundh2000-09-023-198/+158
| | | | | -- improved the SRE test harness: don't use asserts, test a few more things (including more boundary conditions)
* SourceForge patch 101396, by an anonymous friend.Tim Peters2000-09-021-1/+1
| | | | "sre_parse.py missing '7' in DIGITS"
* patch by Neil Schemenauer to improve (fix?) line number generationJeremy Hylton2000-09-012-17/+32
|
* The "more" cmd varies across Windows flavors, sometimes adding strayTim Peters2000-09-012-14/+32
| | | | | | | | newlines at the start or end. Fiddle test_popen2 and popen2._test() to tolerate this. Also change all "assert"s in these tests to raise explicit exceptions, so that python -O doesn't render them useless. Also, in case of error, make the msg display the reprs of what we wrote and what we read, so we can tell exactly why it's failing.
* Update magic number.Jeremy Hylton2000-09-012-15/+47
| | | | | | Fix import support to work with import as variant of Python 2.0. The grammar for import changed, requiring changes in transformer and code generator, even to handle compilation of imports with as.
* Adding new files, removing some.Guido van Rossum2000-09-0118-256/+2711
|
* The usualGuido van Rossum2000-09-0140-886/+1767
|
* Applying patch #100994 to allow JPython to use more of the standardBarry Warsaw2000-09-014-12/+19
| | | | | | | | | | | | | Python test suite. Specifically, - import time instead of strop in test_b1 - test for ClassType of exceptions using isinstance instead of equality in test_exceptions - remove __builtins__ from dir() output in test_pkg test_pkg output needs to be regenerated.
* Applied patch #101350, closing it.Barry Warsaw2000-09-011-1/+3
|
* Added support for RFC 959's REST command (restart), closing SF patchBarry Warsaw2000-09-011-23/+38
| | | | | | | | | | | | | | | | | | | | #101187, which some modifications. Specifically, ntransfercmd(), transfercmd(), and retrbinary() all grow an optional `rest' argument, which if not None, is used as the argument to an FTP REST comman dbefore the socket is returned. Differences from the SF patch: - always compare against None with `is' or `is not' instead of == or != - no parens around conditional - RFC 959 defines the argument to REST is a string containing any ASCII characters in the range [33..126]. Therefore, we use the %s format character instead of %f or %d as suggested in the patch's comments. Note that we do /not/ sanity checkthe contents of the rest argument (but we'll document this in the library reference manual).
* Now that StreamRequestHandler defaults rfile to buffered, make itGuido van Rossum2000-09-011-0/+4
| | | | | | unbuffered (by setting the class variable rbufsize to 0), because we (may) need to pass the file descriptor to the subprocess running the CGI script positioned after the headers.