Permalink
Browse files

Python3-compatible next() in utils.coroutine

  • Loading branch information...
1 parent a609ca1 commit e40898d7fd5326ca80c5e9f0b5538e71a10f4f69 @isagalaev committed Oct 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ijson/utils.py
View
@@ -11,7 +11,7 @@ def coroutine(func):
@wraps(func)
def wrapper(*args, **kwargs):
g = func(*args, **kwargs)
- g.next()
+ next(g)
return g
return wrapper

0 comments on commit e40898d

Please sign in to comment.