mirror of
				https://github.com/notepad-plus-plus/notepad-plus-plus.git
				synced 2025-10-30 19:14:05 +01:00 
			
		
		
		
	git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1009 f5eea248-9336-0410-98b8-ebc06183d4e3
		
			
				
	
	
		
			12 lines
		
	
	
		
			446 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			446 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| {1}# Convert all punctuation characters except '_', '*', and '.' into spaces.{0}
 | |
| {5}def{0} {9}depunctuate{10}({11}s{10}):{0}
 | |
| 	{6}'''A docstring'''{0}
 | |
| 	{7}"""Docstring 2"""{0}
 | |
| 	{11}d{0} {10}={0} {3}""{0}
 | |
| 	{5}for{0} {11}ch{0} {5}in{0} {11}s{10}:{0}
 | |
| 		{5}if{0} {11}ch{0} {5}in{0} {4}'abcde'{10}:{0}
 | |
| 			{11}d{0} {10}={0} {11}d{0} {10}+{0} {11}ch{0}
 | |
| 		{5}else{10}:{0}
 | |
| 			{11}d{0} {10}={0} {11}d{0} {10}+{0} {3}" "{0}
 | |
| 	{5}return{0} {11}d{0}
 |