Skip to content

Commit

Permalink
Replace urllib.quote with six.moves.urllib.parse.quote
Browse files Browse the repository at this point in the history
  • Loading branch information
ale-rt committed Oct 2, 2018
1 parent ec78801 commit 3e05c3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Expand Up @@ -4,6 +4,8 @@ Changelog
4.2 (unreleased)
----------------

- Replace urllib.quote with six.moves.urllib.parse.quote

- Adapt the ZMI HTML to the new Bootstrap ZMI.
(`#41 <https://github.com/zopefoundation/Products.ZCatalog/pull/41>`_)

Expand Down
7 changes: 4 additions & 3 deletions src/Products/ZCatalog/ZCatalog.py
Expand Up @@ -17,7 +17,8 @@
import operator
import sys
import time
import urllib

from six.moves.urllib.parse import quote

from AccessControl.class_init import InitializeClass
from AccessControl.Permission import getPermissionIdentifier
Expand Down Expand Up @@ -248,7 +249,7 @@ def manage_catalogReindex(self, REQUEST, RESPONSE, URL1):
RESPONSE.redirect(
URL1 +
'/manage_catalogAdvanced?manage_tabs_message=' +
urllib.quote('Catalog Updated \n'
quote('Catalog Updated \n'
'Total time: %r\n'
'Total CPU time: %r' % (elapse, c_elapse)))

Expand Down Expand Up @@ -333,7 +334,7 @@ def manage_catalogFoundItems(self, REQUEST, RESPONSE, URL2, URL1,
RESPONSE.redirect(
URL1 +
'/manage_catalogView?manage_tabs_message=' +
urllib.quote('Catalog Updated\n'
quote('Catalog Updated\n'
'Total time: %r\n'
'Total CPU time: %r'
% (elapse, c_elapse)))
Expand Down

0 comments on commit 3e05c3a

Please sign in to comment.