Merge pull request #1472 from adamjstewart/fixes/rstrip
Only strip newline chars, not spaces
This commit is contained in:
		| @@ -93,7 +93,7 @@ def groupid_to_group(x): | ||||
|  | ||||
|         try: | ||||
|             for line in fileinput.input(filename, inplace=True): | ||||
|                 print(re.sub(regex, repl, line.rstrip())) | ||||
|                 print(re.sub(regex, repl, line.rstrip('\n'))) | ||||
|         except: | ||||
|             # clean up the original file on failure. | ||||
|             shutil.move(backup_filename, filename) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 becker33
					becker33