Skip to content

Commit

Permalink
reduce deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed Jun 26, 2018
1 parent f1bb115 commit a7865ca
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions plone/formwidget/namedfile/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from plone.namedfile.utils import stream_data
from Products.CMFCore.utils import getToolByName
from Products.Five.browser import BrowserView
from Products.MimetypesRegistry.common import MimeTypeException
from Products.MimetypesRegistry.interfaces import MimeTypeException
from six.moves import urllib
from z3c.form.browser import file
from z3c.form.group import Group
Expand Down Expand Up @@ -237,8 +237,10 @@ def thumb_tag(self):
""" Return a img tag with a url to the preview scale and the width and
height of a thumbnail scale.
This way on high pixel density screens the image is displayed in screen pixels.
On non-high pixel density screens the browser will downsize them as used to.
This way on high pixel density screens the image is displayed in
screen pixels.
On non-high pixel density screens the browser will downsize them
as used to.
"""
try:
scales = getMultiAdapter(
Expand Down

0 comments on commit a7865ca

Please sign in to comment.