File tree Expand file tree Collapse file tree 5 files changed +2
-18
lines changed Expand file tree Collapse file tree 5 files changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ It looks for two arguments in the :attr:`flask.Request.values` dict: an integer
38
38
.. note ::
39
39
40
40
The default argument type is a unicode string.
41
- This will be ``str`` in python3 and ``unicode`` in python2 .
41
+ This will be ``str``.
42
42
43
43
If you specify the ``help `` value,
44
44
it will be rendered as the error message when a type error is raised while parsing it.
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
1
"""
3
2
This module give access to OpenAPI specifications schemas
4
3
and allows to validate specs against them.
5
4
6
5
.. versionadded:: 0.12.1
7
6
"""
8
- from __future__ import unicode_literals
9
-
10
7
import io
11
8
import json
12
9
import pkg_resources
13
10
14
- try :
15
- from collections .abc import Mapping
16
- except ImportError :
17
- # TODO Remove this to drop Python2 support
18
- from collections import Mapping
11
+ from collections .abc import Mapping
19
12
from jsonschema import Draft4Validator
20
13
21
14
from flask_restx import errors
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- from __future__ import unicode_literals , absolute_import
3
-
4
1
import os
5
2
import sys
6
3
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- from __future__ import unicode_literals
3
-
4
1
import flask
5
2
import pytest
6
3
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- from __future__ import unicode_literals
3
-
4
1
import flask
5
2
6
3
from flask import Blueprint , request
You can’t perform that action at this time.
0 commit comments