summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/help.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-08-25 05:21:54 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2016-08-25 05:21:54 (GMT)
commit558c0de2d4edd1172fd175e642cc8de947d05662 (patch)
tree1d76553799bace1d45994620133a0bad5579efed /Lib/idlelib/help.py
parentd833c778182cc0a049900619fa4b6cf12393b403 (diff)
downloadcpython-558c0de2d4edd1172fd175e642cc8de947d05662.zip
cpython-558c0de2d4edd1172fd175e642cc8de947d05662.tar.gz
cpython-558c0de2d4edd1172fd175e642cc8de947d05662.tar.bz2
Issue #25564: Mention exec and __builtins__ in IDLE-console difference section.
Do not print charrefs outside of the text proper (like '—»»»» ').
Diffstat (limited to 'Lib/idlelib/help.py')
-rw-r--r--Lib/idlelib/help.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/help.py b/Lib/idlelib/help.py
index ba098ca..8599b13 100644
--- a/Lib/idlelib/help.py
+++ b/Lib/idlelib/help.py
@@ -150,7 +150,8 @@ class HelpParser(HTMLParser):
self.text.insert('end', d, (self.tags, self.chartags))
def handle_charref(self, name):
- self.text.insert('end', unichr(int(name)))
+ if self.show:
+ self.text.insert('end', unichr(int(name)))
class HelpText(Text):