[Python-checkins] CVS: python/dist/src/Tools/scripts crlf.py,1.1,1.2 lfcr.py,1.2,1.3

Guido van Rossum guido@cnri.reston.va.us
2000年2月14日 16:42:17 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Tools/scripts
In directory eric:/projects/python/develop/guido/src/Tools/scripts
Modified Files:
	crlf.py lfcr.py 
Log Message:
Patch by Gerrit Holl:
* In crlf.py and lfcr.py: regsub -> re
Index: crlf.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Tools/scripts/crlf.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** crlf.py	1998年09月14日 15:46:41	1.1
--- crlf.py	2000年02月14日 21:42:14	1.2
***************
*** 3,7 ****
 "Replace CRLF with LF in argument files. Print names of changed files."
 
! import sys, regsub, os
 for file in sys.argv[1:]:
 if os.path.isdir(file):
--- 3,7 ----
 "Replace CRLF with LF in argument files. Print names of changed files."
 
! import sys, re, os
 for file in sys.argv[1:]:
 if os.path.isdir(file):
***************
*** 12,16 ****
 print file, "Binary!"
 continue
! newdata = regsub.gsub("\r\n", "\n", data)
 if newdata != data:
 print file
--- 12,16 ----
 print file, "Binary!"
 continue
! newdata = re.sub("\r\n", "\n", data)
 if newdata != data:
 print file
Index: lfcr.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Tools/scripts/lfcr.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** lfcr.py	1998年09月14日 15:56:40	1.2
--- lfcr.py	2000年02月14日 21:42:14	1.3
***************
*** 3,7 ****
 "Replace LF with CRLF in argument files. Print names of changed files."
 
! import sys, regsub, os
 for file in sys.argv[1:]:
 if os.path.isdir(file):
--- 3,7 ----
 "Replace LF with CRLF in argument files. Print names of changed files."
 
! import sys, re, os
 for file in sys.argv[1:]:
 if os.path.isdir(file):
***************
*** 12,16 ****
 print file, "Binary!"
 continue
! newdata = regsub.gsub("\r?\n", "\r\n", data)
 if newdata != data:
 print file
--- 12,16 ----
 print file, "Binary!"
 continue
! newdata = re.sub("\r?\n", "\r\n", data)
 if newdata != data:
 print file

AltStyle によって変換されたページ (->オリジナル) /