Skip to content

Commit 3607de8

Browse files
Pooglesziirish
authored andcommitted
Partial: Remove a few stragglers.
1 parent 173ef6f commit 3607de8

File tree

5 files changed

+2
-18
lines changed

5 files changed

+2
-18
lines changed

doc/parsing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ It looks for two arguments in the :attr:`flask.Request.values` dict: an integer
3838
.. note ::
3939
4040
The default argument type is a unicode string.
41-
This will be ``str`` in python3 and ``unicode`` in python2.
41+
This will be ``str``.
4242
4343
If you specify the ``help`` value,
4444
it will be rendered as the error message when a type error is raised while parsing it.

flask_restx/schemas/__init__.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
This module give access to OpenAPI specifications schemas
43
and allows to validate specs against them.
54
65
.. versionadded:: 0.12.1
76
"""
8-
from __future__ import unicode_literals
9-
107
import io
118
import json
129
import pkg_resources
1310

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
1912
from jsonschema import Draft4Validator
2013

2114
from flask_restx import errors

tasks.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
from __future__ import unicode_literals, absolute_import
3-
41
import os
52
import sys
63

tests/legacy/test_api_legacy.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
from __future__ import unicode_literals
3-
41
import flask
52
import pytest
63

tests/legacy/test_api_with_blueprint.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
from __future__ import unicode_literals
3-
41
import flask
52

63
from flask import Blueprint, request

0 commit comments

Comments
 (0)