aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Harsanyi2010-08-22 19:50:38 -0400
committerChong Yidong2010-08-22 19:50:38 -0400
commitd8f0aff6cd7301e1399563dff793881f70fd7dbd (patch)
treea1f20887ea1a95b09da16ab1d934d11c814dbc37
parentc00725d7967fc88c5492d05f1bbfd5d4eaa4066a (diff)
downloademacs-d8f0aff6cd7301e1399563dff793881f70fd7dbd.tar.gz
emacs-d8f0aff6cd7301e1399563dff793881f70fd7dbd.zip
* emacs3.py: Import imp module and use it (Bug#5756).
-rw-r--r--etc/ChangeLog4
-rw-r--r--etc/emacs3.py11
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 @@
12010-08-22 Alex Harsanyi <harsanyi@mac.com>
2
3 * emacs3.py: Import imp module and use it (Bug#5756).
4
12010-07-27 Ken Brown <kbrown@cornell.edu> 52010-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"""
2Warning: This file is automatically generated from emacs2.py with the
32to3 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
26import os, sys, traceback, inspect, __main__ 19import os, sys, traceback, inspect, imp, __main__
27 20
28try: 21try:
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: