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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user