diff --git a/.gitignore b/.gitignore index 55683e9..11614af 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,115 @@ -/build/ -/dist/ -/docs/_* +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ *.egg-info/ -*.py[co] +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ diff --git a/.travis.yml b/.travis.yml index 3d3f7ae..1987055 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ language: python python: # - 2.6 disabled as the TestLoader.discover() method is not available on python < 2.7 - 2.7 + - 3.6 - pypy matrix: diff --git a/docs/index.rst b/docs/index.rst index 63e73f9..0ff804a 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -109,7 +109,7 @@ You may control the browser's policy by using the methods of # Sometimes it's useful to process bad headers or bad HTML: response = br.response() # this is a copy of response - headers = response.info() # currently, this is a mimetools.Message + headers = response.info() # currently, this is a email.mime.message.MIMEMessage headers["Content-type"] = "text/html; charset=utf-8" response.set_data(response.get_data().replace("