Drop warning for nonlocal image URI

This commit is contained in:
Takeshi KOMIYA 2017-03-27 23:46:12 +09:00
parent 3c46c2f5ac
commit a5d77a8f06
5 changed files with 0 additions and 10 deletions

View File

@ -228,7 +228,6 @@ General configuration
* app.add_source_parser * app.add_source_parser
* download.not_readable * download.not_readable
* image.data_uri * image.data_uri
* image.nonlocal_uri
* image.not_readable * image.not_readable
* ref.term * ref.term
* ref.ref * ref.ref

View File

@ -64,9 +64,6 @@ class ImageCollector(EnvironmentCollector):
candidates['?'] = imguri candidates['?'] = imguri
continue continue
elif imguri.find('://') != -1: elif imguri.find('://') != -1:
logger.warning('nonlocal image URI found: %s' % imguri,
location=node,
type='image', subtype='nonlocal_uri')
candidates['?'] = imguri candidates['?'] = imguri
continue continue
rel_imgpath, full_imgpath = app.env.relfn2path(imguri, docname) rel_imgpath, full_imgpath = app.env.relfn2path(imguri, docname)

View File

@ -15,9 +15,6 @@ test-warnings
.. an SVG image (for HTML at least) .. an SVG image (for HTML at least)
.. image:: svgimg.* .. image:: svgimg.*
.. a non-local image URI
.. image:: http://www.python.org/logo.png
.. should give a warning .. should give a warning
.. literalinclude:: wrongenc.inc .. literalinclude:: wrongenc.inc
:language: none :language: none

View File

@ -32,7 +32,6 @@ WARNING: Explicit markup ends without a blank line; unexpected unindent.
%(root)s/index.rst:\\d+: WARNING: Encoding 'utf-8-sig' used for reading included \ %(root)s/index.rst:\\d+: WARNING: Encoding 'utf-8-sig' used for reading included \
file u'%(root)s/wrongenc.inc' seems to be wrong, try giving an :encoding: option file u'%(root)s/wrongenc.inc' seems to be wrong, try giving an :encoding: option
%(root)s/index.rst:\\d+: WARNING: image file not readable: foo.png %(root)s/index.rst:\\d+: WARNING: image file not readable: foo.png
%(root)s/index.rst:\\d+: WARNING: nonlocal image URI found: http://www.python.org/logo.png
%(root)s/index.rst:\\d+: WARNING: download file not readable: %(root)s/nonexisting.png %(root)s/index.rst:\\d+: WARNING: download file not readable: %(root)s/nonexisting.png
%(root)s/index.rst:\\d+: WARNING: invalid single index entry u'' %(root)s/index.rst:\\d+: WARNING: invalid single index entry u''
%(root)s/undecodable.rst:\\d+: WARNING: undecodable source characters, replacing \ %(root)s/undecodable.rst:\\d+: WARNING: undecodable source characters, replacing \

View File

@ -40,8 +40,6 @@ def test_first_update():
def test_images(): def test_images():
assert ('image file not readable: foo.png' assert ('image file not readable: foo.png'
in app._warning.getvalue()) in app._warning.getvalue())
assert ('nonlocal image URI found: http://www.python.org/logo.png'
in app._warning.getvalue())
tree = env.get_doctree('images') tree = env.get_doctree('images')
htmlbuilder = StandaloneHTMLBuilder(app) htmlbuilder = StandaloneHTMLBuilder(app)