Skip to content
Browse files
Add cmp() function
  • Loading branch information
marioba authored and m-kuhn committed Aug 7, 2017
1 parent b32212d commit f187c43280e6438f75b04f5af845e1cd90620202
Showing with 9 additions and 0 deletions.
  1. +9 −0 python/plugins/processing/algs/qgis/
@@ -896,3 +896,12 @@ def computeDelaunayTriangulation(points):

sl = SiteList(pts)
voronoi(sl, c)

def cmp(a, b):
"""Compare the two objects x and y and return an integer according to the
outcome. The return value is negative if x < y, zero if x == y and strictly
positive if x > y.
In python 2 cmp() was a built in function but in python 3 is gone.
return (a > b) - (a < b)

0 comments on commit f187c43

Please sign in to comment.