summaryrefslogtreecommitdiffstats
path: root/Doc/tools/undoc_symbols.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-03-21 02:11:39 (GMT)
committerCollin Winter <collinw@gmail.com>2007-03-21 02:11:39 (GMT)
commit65d09d4ee984d569424e11415f30d6af209ef558 (patch)
tree8b94fe73e8dbf38622ef2bff089310197956eb08 /Doc/tools/undoc_symbols.py
parent89df245607619ed532106fbbdbf80745815f9c96 (diff)
downloadcpython-65d09d4ee984d569424e11415f30d6af209ef558.zip
cpython-65d09d4ee984d569424e11415f30d6af209ef558.tar.gz
cpython-65d09d4ee984d569424e11415f30d6af209ef558.tar.bz2
Run 2to3 over Doc/tools/.
Diffstat (limited to 'Doc/tools/undoc_symbols.py')
-rw-r--r--Doc/tools/undoc_symbols.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/tools/undoc_symbols.py b/Doc/tools/undoc_symbols.py
index 782ab6c..14cb941 100644
--- a/Doc/tools/undoc_symbols.py
+++ b/Doc/tools/undoc_symbols.py
@@ -80,11 +80,10 @@ def print_undoc_symbols(prefix, docdir, incdir):
fp = os.popen("ctags -IPyAPI_FUNC -IPy_GCC_ATTRIBUTE --c-types=%s -f - %s"
% (TAG_KINDS, incfiles))
dict = findnames(fp, prefix)
- names = dict.keys()
- names.sort()
+ names = sorted(dict.keys())
for name in names:
if not re.search("%s\\W" % name, docs):
- print dict[name], name
+ print(dict[name], name)
if __name__ == '__main__':
srcdir = os.path.dirname(sys.argv[0])