Skip to content

Commit

Permalink
Use safequote in SQS Getting Started doc (celery#5885)
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickschuchmann authored and auvipy committed Dec 20, 2019
1 parent 6b49b0a commit 1ad5592
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/getting-started/brokers/sqs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ encode the password so it can always be parsed correctly. For example:

.. code-block:: python
from kombu.utils.url import quote
from kombu.utils.url import safequote
aws_access_key = quote("ABCDEFGHIJKLMNOPQRST")
aws_secret_key = quote("ZYXK7NiynGlTogH8Nj+P9nlE73sq3")
aws_access_key = safequote("ABCDEFGHIJKLMNOPQRST")
aws_secret_key = safequote("ZYXK7NiynG/TogH8Nj+P9nlE73sq3")
broker_url = "sqs://{aws_access_key}:{aws_secret_key}@".format(
aws_access_key=aws_access_key, aws_secret_key=aws_secret_key,
Expand Down

0 comments on commit 1ad5592

Please sign in to comment.