summaryrefslogtreecommitdiffstats
path: root/Doc/tools/refcounts.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/refcounts.py
parent89df245607619ed532106fbbdbf80745815f9c96 (diff)
downloadcpython-65d09d4ee984d569424e11415f30d6af209ef558.zip
cpython-65d09d4ee984d569424e11415f30d6af209ef558.tar.gz
cpython-65d09d4ee984d569424e11415f30d6af209ef558.tar.bz2
Run 2to3 over Doc/tools/.
Diffstat (limited to 'Doc/tools/refcounts.py')
-rw-r--r--Doc/tools/refcounts.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/Doc/tools/refcounts.py b/Doc/tools/refcounts.py
index ccfc8c6..9efb073 100644
--- a/Doc/tools/refcounts.py
+++ b/Doc/tools/refcounts.py
@@ -69,24 +69,23 @@ class Entry:
def dump(d):
"""Dump the data in the 'canonical' format, with functions in
sorted order."""
- items = d.items()
- items.sort()
+ items = sorted(d.items())
first = 1
for k, entry in items:
if first:
first = 0
else:
- print
+ print()
s = entry.name + ":%s:%s:%s:"
if entry.result_refs is None:
r = ""
else:
r = entry.result_refs
- print s % (entry.result_type, "", r)
+ print(s % (entry.result_type, "", r))
for t, n, r in entry.args:
if r is None:
r = ""
- print s % (t, n, r)
+ print(s % (t, n, r))
def main():