if sane_header is None:
return None
- # on Py2, we want to do unicode(), on Py3, str().
- # That gets us the decoded, un-wrapped header.
- if six.PY2:
- header_str = unicode(sane_header)
- else:
- header_str = str(sane_header)
+ header_str = six.text_type(sane_header)
return normalise_space(header_str)
[tox]
-minversion = 2.0
+minversion = 3.2
envlist = pep8,docs,py27-django111,py{35,36,37,38}-django{111,20,21,22}
-skipsdist = True
+skipsdist = true
+ignore_basepython_conflict = true
[testenv]
+basepython = python3
deps =
-r{toxinidir}/requirements-test.txt
django111: django>=1.11,<2.0
-name \*.sh -print | xargs bashate -i E006"
[testenv:pep8]
-basepython = python2.7
deps = flake8
commands = flake8 {posargs:patchwork manage.py}
sphinx-build -E -W -b dirhtml -d docs/_build/doctrees docs docs/_build/html
[testenv:lint]
-basepython = python2.7
deps =
pylint
-r{toxinidir}/requirements-prod.txt
commands = {posargs}
[testenv:coverage]
-basepython = python2.7
deps =
coverage
-r{toxinidir}/requirements-dev.txt