[Python-checkins] python/nondist/peps pep2html.py,1.52,1.53

goodger at users.sourceforge.net goodger at users.sourceforge.net
Mon Jul 19 21:05:03 CEST 2004


Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28742

Modified Files:
	pep2html.py 
Log Message:
allow https URI scheme in links, continued

Index: pep2html.py
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep2html.py,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** pep2html.py	19 Jul 2004 19:02:14 -0000	1.52
--- pep2html.py	19 Jul 2004 19:05:01 -0000	1.53
***************
*** 97,101 ****
      text = match.group(0)
      link = None
!     if text.startswith('http:') or text.startswith('ftp:'):
          # Strip off trailing punctuation.  Pattern taken from faqwiz.
          ltext = list(text)
--- 97,102 ----
      text = match.group(0)
      link = None
!     if (text.startswith('http:') or text.startswith('https:')
!         or text.startswith('ftp:')):
          # Strip off trailing punctuation.  Pattern taken from faqwiz.
          ltext = list(text)



More information about the Python-checkins mailing list