Skip to content

Commit

Permalink
Merge pull request #4 from xamox/master
Browse files Browse the repository at this point in the history
Fixed a small declaration bug.
  • Loading branch information
Anthony Oliver committed Feb 16, 2012
2 parents 4a3186c + e5f8edd commit b2da086
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 b2da086

Please sign in to comment.