No need for hardcoding line endings for windows. Python handles this by default

This commit is contained in:
Veronica K. B. Olsen
2019-10-26 23:05:12 +02:00
parent f38e770402
commit fde7975a0b
6 changed files with 21 additions and 39 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ class MarkdownFile(TextFile):
def _doOpenFile(self, filePath):
try:
self.outFile = open(filePath,mode="w+")
self.outFile = open(filePath,mode="wt+")
except Exception as e:
self.makeAlert(["Failed to open file.",str(e)], nwAlert.ERROR)
return False