Skip to content

Commit

Permalink
Fix deprecated-urllib-function
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed May 30, 2018
1 parent 60c1af9 commit b80aa85
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sc/social/like/plugins/facebook/browser.py
Expand Up @@ -4,6 +4,7 @@
More information:
* https://developers.facebook.com/docs/plugins
"""
from six.moves.urllib.parse import urlencode # noqa: I001
from Acquisition import aq_inner
from plone import api
from Products.Five import BrowserView
Expand All @@ -13,7 +14,6 @@
from sc.social.like.interfaces import ISocialLikeSettings
from sc.social.like.plugins.facebook.utils import facebook_language
from sc.social.like.utils import get_language
from urllib import urlencode


class PluginView(BrowserView):
Expand Down
2 changes: 1 addition & 1 deletion sc/social/like/plugins/gplus/browser.py
Expand Up @@ -4,13 +4,13 @@
More information:
* https://developers.google.com/+/web/share/
"""
from six.moves.urllib.parse import urlencode # noqa: I001
from Acquisition import aq_inner
from plone import api
from Products.Five import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from sc.social.like.interfaces import ISocialLikeSettings
from sc.social.like.utils import get_language
from urllib import urlencode


class PluginView(BrowserView):
Expand Down
2 changes: 1 addition & 1 deletion sc/social/like/plugins/linkedin/browser.py
Expand Up @@ -5,13 +5,13 @@
* https://developer.linkedin.com/plugins/share
* https://developer.linkedin.com/docs/share-on-linkedin
"""
from six.moves.urllib.parse import urlencode # noqa: I001
from Acquisition import aq_inner
from plone import api
from Products.Five import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from sc.social.like.interfaces import ISocialLikeSettings
from sc.social.like.utils import get_language
from urllib import urlencode


class PluginView(BrowserView):
Expand Down
2 changes: 1 addition & 1 deletion sc/social/like/plugins/pinterest/browser.py
Expand Up @@ -5,13 +5,13 @@
* https://developers.pinterest.com/docs/widgets/save/
* https://developers.pinterest.com/docs/rich-pins/reference/
"""
from six.moves.urllib.parse import urlencode # noqa: I001
from Acquisition import aq_inner
from plone import api
from Products.Five import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from sc.social.like.interfaces import ISocialLikeSettings
from sc.social.like.utils import get_content_image
from urllib import urlencode


class PluginView(BrowserView):
Expand Down
2 changes: 1 addition & 1 deletion sc/social/like/plugins/twitter/browser.py
Expand Up @@ -5,14 +5,14 @@
* https://dev.twitter.com/web/tweet-button
* https://dev.twitter.com/web/overview/privacy
"""
from six.moves.urllib.parse import urlencode # noqa: I001
from Acquisition import aq_inner
from plone import api
from Products.Five import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from sc.social.like.behaviors import ISocialMedia
from sc.social.like.config import IS_PLONE_5
from sc.social.like.interfaces import ISocialLikeSettings
from urllib import urlencode


class PluginView(BrowserView):
Expand Down
2 changes: 1 addition & 1 deletion sc/social/like/tiles/facebook.py
Expand Up @@ -4,6 +4,7 @@
For additional implementation detail see:
https://developers.facebook.com/docs/plugins/page-plugin
"""
from six.moves.urllib.parse import urlencode # noqa: I001
from collective.cover.tiles.base import IPersistentCoverTile
from collective.cover.tiles.base import PersistentCoverTile
from plone import api
Expand All @@ -12,7 +13,6 @@
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from sc.social.like import LikeMessageFactory as _
from sc.social.like.interfaces import ISocialLikeSettings
from urllib import urlencode
# from z3c.form.browser.checkbox import CheckBoxFieldWidget
from zope import schema
from zope.interface import implementer
Expand Down

0 comments on commit b80aa85

Please sign in to comment.