1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 21:21:31 +00:00

Change Zenmap version syntax to meet pip standards. Fixes #2714

This commit is contained in:
dmiller
2024-02-27 20:22:43 +00:00
parent 68c34af819
commit c0e172806f
4 changed files with 4 additions and 3 deletions

View File

@@ -86,6 +86,7 @@ def update_date(base_dir):
def update_version(base_dir, version):
version = re.sub(r'(?=[^0-9.])', '+', version, 1)
print(">>> Updating %s" % os.path.join(base_dir, VERSION))
vf = open(os.path.join(base_dir, VERSION), "w")
print(version, file=vf)