Commit Graph

68 Commits

Author SHA1 Message Date
Neal Norwitz
0c469854bc Adjust whitespace. 2006-04-11 07:21:20 +00:00
Phillip J. Eby
4703211080 Updated the warnings, linecache, inspect, traceback, site, and doctest modules
to work correctly with modules imported from zipfiles or via other PEP 302
__loader__ objects.  Tests and doc updates are included.
2006-04-11 01:07:43 +00:00
Tim Peters
88ca467ca4 Whitespace normalization. 2006-03-10 23:39:56 +00:00
Georg Brandl
24cb053b15 Patch #1446372: quit and exit can now be called from the interactive
interpreter to exit.
2006-03-09 23:22:06 +00:00
Brett Cannon
4d0bddfee6 Fix bug in addsitedir() to properly handle the lack of a second argument.
Fixed to keep backwards-compatibility for the undocumented function.

Closes bug #986795.
2004-07-20 02:28:28 +00:00
Brett Cannon
12f8c4d2e3 Change argument list for addsitedir() to not require a second argument and thus
match old verion's argument list (overlooked since API of the file is
undocumented).
2004-07-09 23:38:18 +00:00
Tim Peters
4e0e1b6a54 Whitespace normalization. 2004-07-07 20:54:48 +00:00
Brett Cannon
0096e262ff Refactored site.py into functions. Also moved over to using sets.
New regression test suite.
2004-06-05 01:12:51 +00:00
Brett Cannon
46cf4fc249 Back out last patch that removed an entry from sys.path if it was not an
existent path.  Pointed out by jvr that entries could be non-file items for
custom importers.
2004-03-21 14:06:49 +00:00
Brett Cannon
cc45466b8f Remove non-existent paths. 2004-03-20 21:31:33 +00:00
Brett Cannon
497331fa2b Fix how line endings were handled when iterating over a .pth file by stripping
all whitespace at the end of the path line.
2004-03-20 21:08:17 +00:00
Hye-Shik Chang
4a8d42f73f We have cp932 support in standard distribution now. And there's now
no major codepages unsupported by Python, so remove the eg. case.
2004-02-13 07:14:13 +00:00
Walter Dörwald
70a6b49821 Replace backticks with repr() or "%r"
From SF patch #852334.
2004-02-12 17:35:32 +00:00
Andrew MacIntyre
2e8a6e0ec6 To find the curses extension as a DLL (on OS/2), we need to adjust the
library search path to include the extension directory.  Without this,
the curses_panel extension can't find the curses extension/DLL, which
exports some curses symbols to it.
2003-12-02 12:27:25 +00:00
Walter Dörwald
f0dfc7ac5c Fix a bunch of typos in documentation, docstrings and comments.
(From SF patch #810751)
2003-10-20 14:01:56 +00:00
Jeremy Hylton
6d58bf69ee Repair operator error. 2003-07-18 17:45:33 +00:00
Jeremy Hylton
bdf3b509ed SF patch 773476: NameError when there are no prefixes. 2003-07-18 17:24:07 +00:00
Jack Jansen
470b0c0e1f In an OSX framework build Python could fail if HOME wasn't set, fixed.
Fixes #747954.
2003-06-03 10:55:35 +00:00
Martin v. Löwis
a94568a753 Patch #734231: Update RiscOS support. In particular, correct
riscospath.extsep, and use os.extsep throughout.
2003-05-10 07:36:56 +00:00
Jack Jansen
be5d707926 When on MacOSX, and only in a framework build, add
~/Library/Python/2.3/site-packages to sys.path, if it exists.
2003-04-16 13:12:21 +00:00
Martin v. Löwis
4eab486476 Patch #671666: Alias ANSI code page to "mbcs". 2003-03-03 09:34:01 +00:00
Just van Rossum
52e14d640b PEP 302 + zipimport:
- new import hooks in import.c, exposed in the sys module
- new module called 'zipimport'
- various changes to allow bootstrapping from zip files

I hope I didn't break the Windows build (or anything else for that
matter), but then again, it's been sitting on sf long enough...

Regarding the latest discussions on python-dev: zipimport sets
pkg.__path__ as specified in PEP 273, and likewise, sys.path item such as
/path/to/Archive.zip/subdir/ are supported again.
2002-12-30 22:08:05 +00:00
Tim Peters
230a60c6ec Whitespace normalization. 2002-11-09 05:08:07 +00:00
Marc-André Lemburg
7ccd30fa43 Fix a problem in site.py which triggers in case sys.path is empty.
Bugfix candidate for 2.2.2.
2002-09-19 11:11:27 +00:00
Fred Drake
e80c0d3580 Add an XXX comment and a pointer to a full bug report. 2002-07-25 20:13:03 +00:00