1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 06:01:28 +00:00

Merge #2088: Update Zenmap to Python 3 and PyGObject

Note: Ndiff build will be broken until subsequent changes are made.
Deprecation warnings will need to be addressed in future changes.
Closes #2088
This commit is contained in:
dmiller
2022-12-07 20:34:03 +00:00
parent e2e55660c3
commit 24b26317c7
104 changed files with 5381 additions and 4383 deletions

View File

@@ -113,7 +113,7 @@ class Linear2DInterpolator:
a_pass = 0
b_pass = 0
self.__interpolated_points = range(number_of_pass)
self.__interpolated_points = list(range(number_of_pass))
for i in range(0, number_of_pass):
@@ -138,7 +138,7 @@ class Linear2DInterpolator:
a_pass = float(af - ai) / number_of_pass
b_pass = float(bf - bi) / number_of_pass
self.__interpolated_points = range(number_of_pass)
self.__interpolated_points = list(range(number_of_pass))
for i in range(1, number_of_pass + 1):
self.__interpolated_points[i - 1] = (ai + a_pass * i,
@@ -156,4 +156,4 @@ if __name__ == "__main__":
i.set_start_point(0, 0)
i.set_final_point(1, 1)
print len(i.get_points(10)), i.get_points(10)
print(len(i.get_points(10)), i.get_points(10))