| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
remove use of "os" module (bootstrap issues) and go to the underlying
platform-specific modules
fix problem in _compile() (trapped wrong error on permission issues)
add SysPathImporter and BuiltinImporter
put __file__ into modules imported from the filesystem. [backwards compat]
put __path__ into modules [backwards compat]
oops: it is doing this for all modules, not just packages.
comment and tweak to the PackageArchiveImporter
|
|
|
|
| |
problem: it does not encode/decode the urls, which is wrong.
|
| |
|
|
|
|
|
| |
checked in due to a patching mishap. Reported by Detlef Lannert;
thanks!
|
| |
|
| |
|
|
|
|
|
| |
parameter match. Error pointed out by François
Pinard <pinard@iro.umontreal.ca> on c.l.py.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I regularly find that pdb sets the breakpoint on the wrong line when I
try to set a breakpoint on a function. This fixes the problem
somewhat.
The real problem is that pdb tries to parse the Python source code to
find the first executable line. A better way might be to inspect the
code object, or even have a variable in the code object
co_firstexecutablelineno, but that's too much work.
The patch fixes the problem when the first code line after the def
statement contains the start *and* end of a triple-quoted string. The
code assumed that the end of a triple-quoted string is not on the same
line as the start, and so it would skip to the end of the *next*
triple-quoted string.
|
|
|
|
|
| |
Also added a comment that the 'p' variants (spawnvp() etc.) are *not*
supported on Windows. (They could be by adding them to posixmodule.c)
|
| |
|
|
|
|
|
|
|
|
| |
have fork and execv (and friends) but not spawnv. They operate
exactly like the spawn functions on Windows. A limited set of needed
constants is also defined (P_WAIT, P_NOWAIT etc.).
Also add getenv() as a familiar alias for environ.get().
|
|
|
|
|
| |
functionality of cmp.py and cmpcache.py, which are hereby declared
obsolescent.
|
|
|
|
|
| |
class instance, include the class attributes in the list of possible
expansions.
|
|
|
|
|
| |
request handling into separate parse_request() and handle_request()
methods.
|
|
|
|
|
|
| |
Now supports the full range of intended formats (tar, ztar, gztar, zip).
"-f" no longer a short option for "--formats" -- conflicts with new
global option "--force"!
|
|
|
|
| |
on the manifest file syntax.
|
| |
|
| |
|
|
|
|
| |
keep whatever gethostname() returns. After a suggestion by Doug Wyatt.
|
|
|
|
| |
more than one window argument.
|
|
|
|
|
| |
(XXX perhaps a bit too verbose; in particular it is sensitive to
all the doc strings.)
|
|
|
|
| |
module, which is tested by test_binhex.py.
|
| |
|
|
|
|
| |
Renamed it and adapted a comment and an error message.
|
|
|
|
|
|
| |
At import time, getpass will be bound to the appropriate
platform-specific function. If the platform's echo-disabler is not
available, default_getpass, which prints the warning, will be used
|
|
|
|
| |
didn't properly handle the hex numbers returned.
|
|
|
|
|
| |
same permissions as the old file, plugging a security hole.
(Not using exactly the suggested bugfix.)
|
|
|
|
| |
supported. Pointed out by Moshe Zadka <moshez@math.huji.ac.il>.
|
|
|
|
|
| |
If os.fork() doesn't exist, raise SystemError with an explanation at
the top of the module. Added a note to the module docstring.
|
|
|
|
| |
messages for specific changes.
|
| |
|
|
|
|
| |
docstring info for readfp().
|
| |
|
|
|
|
|
|
|
|
| |
I found the following patch helpful in tracking down a bug in some
code. I had appended time, the module, instead of time.time(). Not
sure if it is generally true that printing the repr of the object is
good, but I expect that most unpicklable things will have fairly
information and concise reprs (like files or sockets or modules).
|
|
|
|
| |
colon, the first character of the value is lost.
|
|
|
|
| |
'%(' was found in first position (found by Fred Drake).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Withdraw the change that Fred just checked in -- it was a poorly
documented feature, not a bug, to ignore I/O errors in read().
The new docstring explains the reason for the feature:
"""
this is designed so that you can specifiy a list of potential
configuration file locations (e.g. current directory, user's home
directory, systemwide directory), and all existing configuration files
in the list will be read.
"""
Also add a lower-level function, readfp(), which takes an open file
object (and optionally a filename).
XXX There are some other problems with this module, but I don't have
time to dig into these; in particular, there are complaints that the
%(name)s substitution from the [DEFAULTS] section doesn't work
correctly.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
global options table.
Every Command instance now has its own copies of the global options,
which automatically fallback to the Distribution instance. Changes:
- initialize them in constructor
- added '__getattr__()' to handle the fallback logic
- changed every 'self.distribution.{verbose,dry_run}' in Command to
'self.{verbose,dry_run}'.
- filesystem utility methods ('copy_file()' et al) don't take 'update'
parameter anymore -- instead we pass 'not force' to the underlying
function as 'update'
Changed parsing of command line so that global options apply to all
commands as well -- that's how (eg.) Command.verbose will be initialized.
Simplified 'make_file()' to use 'newer_group()' (from util module).
Deleted some cruft.
Some docstring tweaks.
|
|
|
|
|
|
|
| |
the code a bit and should make it work under Windows even with trailing
backslash.
Fixed a couple of docstrings.
Added comment about 'make_file()' possibly being redundant and unnecessary.
|