summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-02-24 23:41:47 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-02-24 23:41:47 (GMT)
commit95f285c7536fb77f485b49f9585f3860566dd462 (patch)
tree7fb8f9a88aaf8241dfcf3a5da4bacd4e05752310 /Lib/pydoc.py
parent4d9a823cb64a7ed95b2bf356322362ca91b00ea0 (diff)
downloadcpython-95f285c7536fb77f485b49f9585f3860566dd462.zip
cpython-95f285c7536fb77f485b49f9585f3860566dd462.tar.gz
cpython-95f285c7536fb77f485b49f9585f3860566dd462.tar.bz2
Revert unintended part of r69948. Pydoc was not supposed to change.
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index be2a73e..2aea8c0 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -390,7 +390,7 @@ class HTMLRepr(Repr):
# needed to make any special characters, so show a raw string.
return 'r' + testrepr[0] + self.escape(test) + testrepr[0]
return re.sub(r'((\\[\\abfnrtv\'"]|\\[0-9]..|\\x..|\\u....)+)',
- r'<span class="">\1</span>',
+ r'<font color="#c040c0">\1</font>',
self.escape(testrepr))
repr_str = repr_string
@@ -417,7 +417,7 @@ class HTMLDoc(Doc):
return '''
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: %s</title>
-</head><body>
+</head><body bgcolor="#f0f0f8">
%s
</body></html>''' % (title, contents)
@@ -456,7 +456,7 @@ class HTMLDoc(Doc):
def bigsection(self, title, *args):
"""Format a section with a big heading."""
- title = '<span class="bigsection">%s</span>' % title
+ title = '<big><strong>%s</strong></big>' % title
return self.section(title, *args)
def preformat(self, text):
@@ -477,7 +477,7 @@ class HTMLDoc(Doc):
result = result + '</td>'
return '<table width="100%%" summary="list"><tr>%s</tr></table>' % result
- def grey(self, text): return '<span class="grey">%s</span>' % text
+ def grey(self, text): return '<font color="#909090">%s</font>' % text
def namelink(self, name, *dicts):
"""Make a link for an identifier, given name-to-URL mappings."""
@@ -508,7 +508,7 @@ class HTMLDoc(Doc):
else:
url = '%s.html' % name
if ispackage:
- text = '<span class="package">%s</span>&nbsp;(package)' % name
+ text = '<strong>%s</strong>&nbsp;(package)' % name
else:
text = name
return '<a href="%s">%s</a>' % (url, text)
@@ -542,7 +542,7 @@ class HTMLDoc(Doc):
elif text[end:end+1] == '(':
results.append(self.namelink(name, methods, funcs, classes))
elif selfdot:
- results.append('self.<span class="selfdot">%s</span>' % name)
+ results.append('self.<strong>%s</strong>' % name)
else:
results.append(self.namelink(name, classes))
here = end
@@ -557,14 +557,14 @@ class HTMLDoc(Doc):
for entry in tree:
if type(entry) is type(()):
c, bases = entry
- result = result + '<dt class="classlink">'
+ result = result + '<dt><font face="helvetica, arial">'
result = result + self.classlink(c, modname)
if bases and bases != (parent,):
parents = []
for base in bases:
parents.append(self.classlink(base, modname))
result = result + '(' + ', '.join(parents) + ')'
- result = result + '\n</dt>'
+ result = result + '\n</font></dt>'
elif type(entry) is type([]):
result = result + '<dd>\n%s</dd>\n' % self.formattree(
entry, modname, c)
@@ -581,10 +581,10 @@ class HTMLDoc(Doc):
links = []
for i in range(len(parts)-1):
links.append(
- '<a href="%s.html" class="links">%s</a>' %
+ '<a href="%s.html"><font color="#ffffff">%s</font></a>' %
('.'.join(parts[:i+1]), parts[i]))
linkedname = '.'.join(links + parts[-1:])
- head = '<span class="linkedname">%s</span>' % linkedname
+ head = '<big><big><strong>%s</strong></big></big>' % linkedname
try:
path = inspect.getabsfile(object)
url = path