1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 05:01:29 +00:00

Ensure UTF-8 encoding used throughout zenmap

This commit is contained in:
dmiller
2024-04-26 17:25:40 +00:00
parent 480803e24a
commit c840e236cb
12 changed files with 48 additions and 36 deletions

View File

@@ -199,7 +199,7 @@ def return_if_exists(path, create=False):
if os.path.exists(path):
return path
elif create:
f = open(path, "w")
f = open(path, "wb")
f.close()
return path
raise Exception("File '%s' does not exist or could not be found!" % path)