Commit Graph

34 Commits

Author SHA1 Message Date
Ronald Oussoren
9545a23c7f In a number of places code still revers
to "sys.platform == 'mac'" and that is
dead code because it refers to a platform
that is no longer supported (and hasn't been
supported for several releases).

Fixes issue #7908 for the trunk.
2010-05-05 19:09:31 +00:00
Antoine Pitrou
b9d4963a98 Issue #7092: Fix the DeprecationWarnings emitted by the standard library
when using the -3 flag.  Patch by Florent Xicluna.
2010-01-04 23:22:44 +00:00
Benjamin Peterson
de0559998f replace callable() 2009-10-09 22:05:45 +00:00
Georg Brandl
18187e2167 #6224: s/JPython/Jython/, and remove one link to a module nine years old. 2009-06-06 18:21:58 +00:00
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