Skip to content

Commit

Permalink
Remove dependency on future
Browse files Browse the repository at this point in the history
Sole use was raise_from. 

six.raise_from loses exception detail on Python 2, so god help the programmers of the past.

Fixes #196.
  • Loading branch information
axnsan12 committed Sep 9, 2018
1 parent 5fa35d5 commit 3ac6c9e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ coreapi>=2.3.3
coreschema>=0.0.4
ruamel.yaml>=0.15.34
inflection>=0.3.1
future>=0.16.0
six>=1.10.0
uritemplate>=3.0.0

Expand Down
2 changes: 1 addition & 1 deletion src/drf_yasg/codecs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from future.utils import raise_from
from six import raise_from

import copy
import json
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ not_skip = __init__.py
atomic = true
multi_line_output = 5
line_length = 120
known_future_library = future,six
known_future_library = six
known_standard_library =
collections,copy,distutils,functools,inspect,io,json,logging,operator,os,pkg_resources,re,setuptools,sys,
types,warnings
Expand Down

0 comments on commit 3ac6c9e

Please sign in to comment.