Skip to content
This repository has been archived by the owner on Jan 15, 2020. It is now read-only.

Commit

Permalink
bugfix in python.py
Browse files Browse the repository at this point in the history
== should be =
It actually might be better to use number._isinteger()
  • Loading branch information
matiasg committed Dec 4, 2014
1 parent a2ae672 commit 9a15bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ijson/backends/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def parse_value(lexer, symbol=None, pos=0):
number = decimal.Decimal(symbol)
int_number = int(number)
if int_number == number:
number == int_number
number = int_number
yield ('number', number)
except decimal.InvalidOperation:
raise UnexpectedSymbol(symbol, pos)
Expand Down

0 comments on commit 9a15bef

Please sign in to comment.