From 1a3284ed69d545e4ef59869998cb8c29233a45fa Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 2 Dec 2007 09:40:06 +0000 Subject: #1535: rename __builtin__ module to builtins. --- Lib/idlelib/ColorDelegator.py | 4 ++-- Lib/idlelib/RemoteDebugger.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Lib/idlelib') diff --git a/Lib/idlelib/ColorDelegator.py b/Lib/idlelib/ColorDelegator.py index b93aa5abb1..e7112c93a0 100644 --- a/Lib/idlelib/ColorDelegator.py +++ b/Lib/idlelib/ColorDelegator.py @@ -1,7 +1,7 @@ import time import re import keyword -import __builtin__ +import builtins from Tkinter import * from idlelib.Delegator import Delegator from idlelib.configHandler import idleConf @@ -14,7 +14,7 @@ def any(name, alternates): def make_pat(): kw = r"\b" + any("KEYWORD", keyword.kwlist) + r"\b" - builtinlist = [str(name) for name in dir(__builtin__) + builtinlist = [str(name) for name in dir(builtins) if not name.startswith('_')] # self.file = open("file") : # 1st 'file' colorized normal, 2nd as builtin, 3rd as string diff --git a/Lib/idlelib/RemoteDebugger.py b/Lib/idlelib/RemoteDebugger.py index e5b95b4e6b..46582d10ea 100644 --- a/Lib/idlelib/RemoteDebugger.py +++ b/Lib/idlelib/RemoteDebugger.py @@ -172,7 +172,7 @@ class IdbAdapter: def dict_item(self, did, key): dict = dicttable[did] value = dict[key] - value = repr(value) ### can't pickle module '__builtin__' + value = repr(value) ### can't pickle module 'builtins' return value #----------end class IdbAdapter---------- -- cgit v1.2.1