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