Remove six dependency
This commit is contained in:
parent
135c53a5f2
commit
a0801719f8
9 changed files with 21 additions and 21 deletions
|
|
@ -24,7 +24,6 @@ from functools import update_wrapper
|
|||
|
||||
from werkzeug.datastructures import Headers
|
||||
from werkzeug.exceptions import NotFound
|
||||
import six
|
||||
from flask._compat import string_types, text_type
|
||||
|
||||
# this was moved in 0.7
|
||||
|
|
@ -128,7 +127,7 @@ def stream_with_context(generator_or_function):
|
|||
# pushed. This item is discarded. Then when the iteration continues the
|
||||
# real generator is executed.
|
||||
wrapped_g = generator()
|
||||
six.advance_iterator(wrapped_g)
|
||||
next(wrapped_g)
|
||||
return wrapped_g
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue