Skip to content

Commit

Permalink
Fixed another small bug in instance points declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Oliver committed Feb 16, 2012
1 parent 4925656 commit e5f8edd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zxing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def __init__(self, zxing_output):
parsed_block = False
point_block = False

self.points = []
for l in lines:
m = re.search("format:\s([^,]+)", l)
if (not raw_block and not parsed_block and not point_block and m):
Expand Down Expand Up @@ -107,7 +108,7 @@ def __init__(self, zxing_output):
if (m):
self.points.append((float(m.group(2)), float(m.group(3))))

self.points = self.points[0:4]

return


Expand Down

0 comments on commit e5f8edd

Please sign in to comment.