diff options
| author | Alex Harsanyi | 2010-08-22 19:50:38 -0400 |
|---|---|---|
| committer | Chong Yidong | 2010-08-22 19:50:38 -0400 |
| commit | d8f0aff6cd7301e1399563dff793881f70fd7dbd (patch) | |
| tree | a1f20887ea1a95b09da16ab1d934d11c814dbc37 | |
| parent | c00725d7967fc88c5492d05f1bbfd5d4eaa4066a (diff) | |
| download | emacs-d8f0aff6cd7301e1399563dff793881f70fd7dbd.tar.gz emacs-d8f0aff6cd7301e1399563dff793881f70fd7dbd.zip | |
* emacs3.py: Import imp module and use it (Bug#5756).
| -rw-r--r-- | etc/ChangeLog | 4 | ||||
| -rw-r--r-- | etc/emacs3.py | 11 |
2 files changed, 6 insertions, 9 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog index 456033af1c9..f6166ef8a5f 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-08-22 Alex Harsanyi <harsanyi@mac.com> | ||
| 2 | |||
| 3 | * emacs3.py: Import imp module and use it (Bug#5756). | ||
| 4 | |||
| 1 | 2010-07-27 Ken Brown <kbrown@cornell.edu> | 5 | 2010-07-27 Ken Brown <kbrown@cornell.edu> |
| 2 | 6 | ||
| 3 | * PROBLEMS: Mention problem with Cygwin 1.5.19. | 7 | * PROBLEMS: Mention problem with Cygwin 1.5.19. |
diff --git a/etc/emacs3.py b/etc/emacs3.py index fd2e7c97c53..de81848e5c3 100644 --- a/etc/emacs3.py +++ b/etc/emacs3.py | |||
| @@ -1,10 +1,3 @@ | |||
| 1 | """ | ||
| 2 | Warning: This file is automatically generated from emacs2.py with the | ||
| 3 | 2to3 script. Do not hand edit. | ||
| 4 | """ | ||
| 5 | |||
| 6 | """Definitions used by commands sent to inferior Python in python.el.""" | ||
| 7 | |||
| 8 | # Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 1 | # Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
| 9 | # Author: Dave Love <fx@gnu.org> | 2 | # Author: Dave Love <fx@gnu.org> |
| 10 | 3 | ||
| @@ -23,7 +16,7 @@ Warning: This file is automatically generated from emacs2.py with the | |||
| 23 | # You should have received a copy of the GNU General Public License | 16 | # You should have received a copy of the GNU General Public License |
| 24 | # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | 17 | # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
| 25 | 18 | ||
| 26 | import os, sys, traceback, inspect, __main__ | 19 | import os, sys, traceback, inspect, imp, __main__ |
| 27 | 20 | ||
| 28 | try: | 21 | try: |
| 29 | set | 22 | set |
| @@ -216,7 +209,7 @@ def eimport (mod, dir): | |||
| 216 | try: | 209 | try: |
| 217 | try: | 210 | try: |
| 218 | if mod in __dict__ and inspect.ismodule (__dict__[mod]): | 211 | if mod in __dict__ and inspect.ismodule (__dict__[mod]): |
| 219 | reload (__dict__[mod]) | 212 | imp.reload (__dict__[mod]) |
| 220 | else: | 213 | else: |
| 221 | __dict__[mod] = __import__ (mod) | 214 | __dict__[mod] = __import__ (mod) |
| 222 | except: | 215 | except: |