Commit bc2eff3
committed
PyImport_Import was using the old import hack of sticking a dummy value into
fromlist to get __import__ to return the module desired. Now it uses the proper
approach of fetching the module from sys.modules.
Closes issue #9252. Thanks to Alexander Belopolsky for the bug report.1 parent e1f2f30 commit bc2eff3
2 files changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3044 | 3044 | | |
3045 | 3045 | | |
3046 | 3046 | | |
3047 | | - | |
| 3047 | + | |
3048 | 3048 | | |
3049 | 3049 | | |
3050 | 3050 | | |
| |||
3058 | 3058 | | |
3059 | 3059 | | |
3060 | 3060 | | |
| 3061 | + | |
3061 | 3062 | | |
3062 | 3063 | | |
3063 | 3064 | | |
| |||
3068 | 3069 | | |
3069 | 3070 | | |
3070 | 3071 | | |
3071 | | - | |
| 3072 | + | |
3072 | 3073 | | |
3073 | 3074 | | |
3074 | 3075 | | |
| |||
3104 | 3105 | | |
3105 | 3106 | | |
3106 | 3107 | | |
3107 | | - | |
| 3108 | + | |
| 3109 | + | |
3108 | 3110 | | |
3109 | 3111 | | |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
| 3119 | + | |
3110 | 3120 | | |
3111 | 3121 | | |
3112 | 3122 | | |
| |||
0 commit comments