Skip to content

Commit

Permalink
Merge pull request #156 from tmbdev/tabs2spaces
Browse files Browse the repository at this point in the history
Remove tabs in source
  • Loading branch information
zuphilip authored Dec 4, 2016
2 parents d472d29 + 5662d67 commit fe8d849
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ocrolib/morph.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def label(image,**kw):
except: pass
types = ["int32","uint32","int64","unit64","int16","uint16"]
for t in types:
try: return measurements.label(array(image,dtype=t),**kw)
except: pass
try: return measurements.label(array(image,dtype=t),**kw)
except: pass
# let it raise the same exception as before
return measurements.label(image,**kw)

Expand All @@ -34,8 +34,8 @@ def find_objects(image,**kw):
except: pass
types = ["int32","uint32","int64","unit64","int16","uint16"]
for t in types:
try: return measurements.find_objects(array(image,dtype=t),**kw)
except: pass
try: return measurements.find_objects(array(image,dtype=t),**kw)
except: pass
# let it raise the same exception as before
return measurements.find_objects(image,**kw)

Expand Down

0 comments on commit fe8d849

Please sign in to comment.