Terry J. Reedy added the comment:

The glitch with the section name was that the second time the name was pulled 
from the StringVar, it was not stripped.  The possible fixes were to strip 
after the second get, get once in ok(), strip, and pass to name_ok, or get once 
in name_ok, strip, and return to ok().  Both the latter two simplify the code a 
bit.

For help-source, the second gets were alreads stripped as well, so the glitch 
is not present.  I applied the patch as posted.  If I were to make a change to 
get once, I would do it in ok rather than in xyz_ok.  Maybe when I combine the 
files.

----------
assignee:  -> terry.reedy
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.6 -Python 2.7, Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20640>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to