Cleanup (#820)
* Update instructions and readmes * Cleanup in base files * Cleanup in core files * Cleanup in gui files * Cleanup in dialog files * Cleanup in tools files * Cleanup in test files
This commit is contained in:
committed by
GitHub
parent
1881b3d32c
commit
6d7ca2bb86
+4
-4
@@ -32,13 +32,13 @@ def cmpFiles(fileOne, fileTwo, ignoreLines=None):
|
||||
ignoreLines = []
|
||||
|
||||
try:
|
||||
foOne = open(fileOne, mode="r", encoding="utf8")
|
||||
foOne = open(fileOne, mode="r", encoding="utf-8")
|
||||
except Exception as e:
|
||||
print(str(e))
|
||||
return False
|
||||
|
||||
try:
|
||||
foTwo = open(fileTwo, mode="r", encoding="utf8")
|
||||
foTwo = open(fileTwo, mode="r", encoding="utf-8")
|
||||
except Exception as e:
|
||||
print(str(e))
|
||||
return False
|
||||
@@ -83,14 +83,14 @@ def getGuiItem(theName):
|
||||
def readFile(fileName):
|
||||
"""Returns the content of a file as a string.
|
||||
"""
|
||||
with open(fileName, mode="r", encoding="utf8") as inFile:
|
||||
with open(fileName, mode="r", encoding="utf-8") as inFile:
|
||||
return inFile.read()
|
||||
|
||||
|
||||
def writeFile(fileName, fileData):
|
||||
"""Write the contents of a string to a file.
|
||||
"""
|
||||
with open(fileName, mode="w", encoding="utf8") as outFile:
|
||||
with open(fileName, mode="w", encoding="utf-8") as outFile:
|
||||
outFile.write(fileData)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user