Remove six dependency

This commit is contained in:
Daniel Neuhäuser 2013-05-22 21:40:30 +02:00
parent 135c53a5f2
commit a0801719f8
9 changed files with 21 additions and 21 deletions

View file

@ -13,10 +13,10 @@ import flask
import unittest
import warnings
from flask.testsuite import FlaskTestCase, emits_module_deprecation_warning
from flask._compat import text_type
from werkzeug.exceptions import NotFound
from werkzeug.http import parse_cache_control_header
from jinja2 import TemplateNotFound
import six
# import moduleapp here because it uses deprecated features and we don't
@ -303,7 +303,7 @@ class BlueprintTestCase(FlaskTestCase):
@bp.route('/bar')
def bar(bar):
return six.text_type(bar)
return text_type(bar)
app = flask.Flask(__name__)
app.register_blueprint(bp, url_prefix='/1', url_defaults={'bar': 23})