mirror of https://github.com/kivy/kivy.git
Merge branch 'master' into py2
This commit is contained in:
commit
4a162f8459
|
@ -72,7 +72,7 @@ install:
|
|||
pip install --upgrade cython pillow pytest coveralls docutils PyInstaller;
|
||||
fi;
|
||||
if [ "${RUN}" == "docs" ]; then
|
||||
python3 -m pip install --upgrade sphinxcontrib-blockdiag sphinxcontrib-seqdiag sphinxcontrib-actdiag sphinxcontrib-nwdiag;
|
||||
python3 -m pip install --upgrade sphinx==1.7.9 sphinxcontrib-blockdiag sphinxcontrib-seqdiag sphinxcontrib-actdiag sphinxcontrib-nwdiag;
|
||||
fi;
|
||||
fi;
|
||||
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
Cython>=0.24
|
||||
# Frozen Sphinx requirements for easier pip installation
|
||||
sphinx==1.7.9
|
||||
sphinxcontrib-actdiag
|
||||
sphinxcontrib-blockdiag
|
||||
sphinxcontrib-nwdiag
|
||||
|
|
|
@ -331,10 +331,7 @@ class LoaderBase(object):
|
|||
else:
|
||||
# read from internet
|
||||
request = urllib_request.Request(filename)
|
||||
if (
|
||||
Config.has_section('network')
|
||||
and 'useragent' in Config.items('network')
|
||||
):
|
||||
if Config.has_option('network', 'useragent'):
|
||||
useragent = Config.get('network', 'useragent')
|
||||
if useragent:
|
||||
request.add_header('User-Agent', useragent)
|
||||
|
|
Loading…
Reference in New Issue