mirror of
				https://github.com/notepad-plus-plus/notepad-plus-plus.git
				synced 2025-10-31 03:24:04 +01:00 
			
		
		
		
	git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1009 f5eea248-9336-0410-98b8-ebc06183d4e3
		
			
				
	
	
		
			12 lines
		
	
	
		
			233 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			233 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # Convert all punctuation characters except '_', '*', and '.' into spaces.
 | |
| def depunctuate(s):
 | |
| 	'''A docstring'''
 | |
| 	"""Docstring 2"""
 | |
| 	d = ""
 | |
| 	for ch in s:
 | |
| 		if ch in 'abcde':
 | |
| 			d = d + ch
 | |
| 		else:
 | |
| 			d = d + " "
 | |
| 	return d
 |