Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 15, 2015
1 parent 5b244ae commit 19ff7de
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
18 changes: 12 additions & 6 deletions python/plugins/fTools/tools/voronoi.py
Expand Up @@ -734,9 +734,11 @@ def setSiteNumber(self, site):

class Iterator(object):

def __init__(this, lst): this.generator = (s for s in lst)
def __init__(this, lst):
this.generator = (s for s in lst)

def __iter__(this): return this
def __iter__(this):
return this

def next(this):
try:
Expand All @@ -753,13 +755,17 @@ def __iter__(self):
def __len__(self):
return len(self.__sites)

def _getxmin(self): return self.__xmin
def _getxmin(self):
return self.__xmin

def _getymin(self): return self.__ymin
def _getymin(self):
return self.__ymin

def _getxmax(self): return self.__xmax
def _getxmax(self):
return self.__xmax

def _getymax(self): return self.__ymax
def _getymax(self):
return self.__ymax

xmin = property(_getxmin)
ymin = property(_getymin)
Expand Down
18 changes: 12 additions & 6 deletions python/plugins/processing/algs/qgis/voronoi.py
Expand Up @@ -759,9 +759,11 @@ def setSiteNumber(self, site):

class Iterator(object):

def __init__(this, lst): this.generator = (s for s in lst)
def __init__(this, lst):
this.generator = (s for s in lst)

def __iter__(this): return this
def __iter__(this):
return this

def next(this):
try:
Expand All @@ -778,13 +780,17 @@ def __iter__(self):
def __len__(self):
return len(self.__sites)

def _getxmin(self): return self.__xmin
def _getxmin(self):
return self.__xmin

def _getymin(self): return self.__ymin
def _getymin(self):
return self.__ymin

def _getxmax(self): return self.__xmax
def _getxmax(self):
return self.__xmax

def _getymax(self): return self.__ymax
def _getymax(self):
return self.__ymax

xmin = property(_getxmin)
ymin = property(_getymin)
Expand Down

0 comments on commit 19ff7de

Please sign in to comment.