[Python-checkins] python/dist/src/Lib doctest.py,1.71,1.72
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Fri Aug 20 04:08:08 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5691
Modified Files:
doctest.py
Log Message:
Gave _ellipsis_match() an attractive new leading underscore.
Index: doctest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/doctest.py,v
retrieving revision 1.71
retrieving revision 1.72
diff -C2 -d -r1.71 -r1.72
*** doctest.py 19 Aug 2004 19:26:06 -0000 1.71
--- doctest.py 20 Aug 2004 02:08:04 -0000 1.72
***************
*** 391,398 ****
# Worst-case linear-time ellipsis matching.
! def ellipsis_match(want, got):
"""
Essentially the only subtle case:
! >>> ellipsis_match('aa...aa', 'aaa')
False
"""
--- 391,398 ----
# Worst-case linear-time ellipsis matching.
! def _ellipsis_match(want, got):
"""
Essentially the only subtle case:
! >>> _ellipsis_match('aa...aa', 'aaa')
False
"""
***************
*** 427,431 ****
if startpos > endpos:
# Exact end matches required more characters than we have, as in
! # ellipsis_match('aa...aa', 'aaa')
return False
--- 427,431 ----
if startpos > endpos:
# Exact end matches required more characters than we have, as in
! # _ellipsis_match('aa...aa', 'aaa')
return False
***************
*** 1559,1563 ****
# match any substring in `got`.
if optionflags & ELLIPSIS:
! if ellipsis_match(want, got):
return True
--- 1559,1563 ----
# match any substring in `got`.
if optionflags & ELLIPSIS:
! if _ellipsis_match(want, got):
return True
More information about the Python-checkins
mailing list