Brett Cannon
80bb9d92e3
Deprecate the imputil module for removal in 3.0.
2008-05-08 18:15:14 +00:00
Martin v. Löwis
07aa3ed372
Patch #685268 : Consider a package's __path__ in imputil.
...
Will backport.
2007-02-13 08:34:45 +00:00
Georg Brandl
61d168a55e
Bug #1481530 : allow "from os.path import ..." with imputil
2006-05-04 05:08:10 +00:00
Tim Peters
3d3cfdb499
ihooks FancyModuleLoader.load_module()
...
imputils Importer._process_result():
remove name from modules dict if exec fails.
This is what all the builtin importers do now, new in 2.4.
2004-08-04 02:29:12 +00:00
Jeremy Hylton
13f99d7097
Close SF patch 523944: importing modules with foreign newlines.
...
Didn't use the patch, because universal newlines support made it easy.
It might be worth fixing the actual problem in the 2.2 maintenance
branch, in which case the patch is still needed.
2002-06-28 23:32:51 +00:00
Raymond Hettinger
32200aeac6
Replaced obsolete stat module constants with equivalent attributes
2002-06-01 19:51:15 +00:00
Raymond Hettinger
936654bce0
Replaced boolean test with is None
2002-06-01 03:06:31 +00:00
Neal Norwitz
4212ea4d7a
SF #515012 , cleanup: remove unused variable
2002-02-11 18:01:32 +00:00
Fred Drake
05857df41b
Added docstring by Neal Norwitz. This closes SF bug #450979 .
2001-09-04 18:39:45 +00:00
Martin v. Löwis
70195da3ff
Patch #443337 : Fix incompatibilities in imputil's behavior.
2001-07-28 20:33:41 +00:00
Martin v. Löwis
d3011cd1d3
Remove usage of strop module.
2001-07-28 17:59:34 +00:00
Greg Stein
76977bbcaf
Add an uninstall method to the ImportManager.
...
This is the accepted portion of patch #402498 .
2001-04-07 16:05:24 +00:00
Thomas Heller
bfae1964c8
This change makes imputil more closely emulate the standard import
...
mechanism to support self-modifying modules.
2001-02-12 09:17:06 +00:00
Skip Montanaro
17ab123cf1
a few more modules get __all__
2001-01-24 06:27:27 +00:00
Tim Peters
07e99cb774
Whitespace normalization.
2001-01-14 23:47:14 +00:00
Fred Drake
8152d32375
Update the code to better reflect recommended style:
...
Use != instead of <> since <> is documented as "obsolescent".
Use "is" and "is not" when comparing with None or type objects.
2000-12-12 23:20:45 +00:00
Greg Stein
dd6eefb348
no changes other than indentation level (now 4) and comment reflow.
...
use "cvs diff -b" to verify.
2000-07-18 09:09:48 +00:00
Greg Stein
99a5621f3f
now that imputil is in the main Python repository, clean up the header
2000-06-26 17:31:49 +00:00
Greg Stein
42b9bc7a7d
add TODO section
2000-02-19 13:36:23 +00:00
Greg Stein
3bb578c128
reduce fsimp coupling: provide fs_imp param to ImportManager constructor,
...
add clsFilesystemImporter class attribute, alter handling of suffix list
convert suffix importers to funcs rather than instances
remove backwards compat code: Importer.install and 2-tuple get_code()
result values
2000-02-18 13:04:10 +00:00
Greg Stein
d4f1d2074e
shift demo importers to importers.py (destined for Demo/ ?)
...
switch to isinstance() rather than direct type comparisons
removing chaining concept
update ImportManager.install() to take an optional namespace to install
itself in. this will be useful for setting up rexec environments.
minor comment nits
2000-02-18 12:03:40 +00:00
Greg Stein
f23aa1ee9f
redesign/rebuild around the ImportManager concept.
2000-01-03 02:38:29 +00:00
Greg Stein
32efef33ae
look for builtins before stuff on the path.
1999-11-24 02:38:37 +00:00
Greg Stein
2b23413ce2
add loading of dynamic library modules.
1999-11-24 02:37:05 +00:00
Greg Stein
7ec28d298d
turn SysPathImporter into PathImporter.
1999-11-20 12:31:07 +00:00
Greg Stein
72ee43527d
remove the __version__ global.
1999-11-20 11:39:56 +00:00
Greg Stein
6d3165a5a1
only put __path__ into package modules.
1999-11-20 11:39:00 +00:00
Greg Stein
63faa01538
shift code from DirectoryImporter out to a common area.
...
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
1999-11-20 11:22:37 +00:00
Greg Stein
d4c64ba0f9
Add some header comments to all the files.
1999-11-07 13:14:58 +00:00
Greg Stein
281b8d82f7
initial checkin for my Python stuff.
1999-11-07 12:54:45 +00:00