summaryrefslogtreecommitdiff
path: root/Misc/Vim
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-12-02 09:40:06 +0000
committerGeorg Brandl <georg@python.org>2007-12-02 09:40:06 +0000
commit7d4a05a4ebffb688137ca5b5a92825a756927e7e (patch)
tree012f200cbef14b454fbce4325f11ab7c6b08f4f4 /Misc/Vim
parent76c3522261540b3660a5172f01c99d29db08c579 (diff)
downloadcpython-7d4a05a4ebffb688137ca5b5a92825a756927e7e.tar.gz
#1535: rename __builtin__ module to builtins.
Diffstat (limited to 'Misc/Vim')
-rw-r--r--Misc/Vim/vim_syntax.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Misc/Vim/vim_syntax.py b/Misc/Vim/vim_syntax.py
index 3212bf4eac..14c5512715 100644
--- a/Misc/Vim/vim_syntax.py
+++ b/Misc/Vim/vim_syntax.py
@@ -4,7 +4,7 @@ from __future__ import with_statement
import keyword
import exceptions
-import __builtin__
+import builtins
from string import Template
comment_header = '''" Auto-generated Vim syntax file for Python.
@@ -39,7 +39,7 @@ exception_names = sorted(exc for exc in dir(exceptions)
# nothing that comes with modules (e.g., __name__), so just exclude anything in
# the 'exceptions' module since we want to ignore exceptions *and* what any
# module would have
-builtin_names = sorted(builtin for builtin in dir(__builtin__)
+builtin_names = sorted(builtin for builtin in dir(builtins)
if builtin not in dir(exceptions))
escapes = (r'+\\[abfnrtv\'"\\]+', r'"\\\o\{1,3}"', r'"\\x\x\{2}"',