Skip to content

Commit 5e0e575

Browse files
Update how-to-control-access.md
Updated the import statement to be compatible with Python 3.x versions
1 parent a0408fa commit 5e0e575

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/iot-dps/how-to-control-access.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ As a comparison, the equivalent Python code to generate a security token is:
217217
from base64 import b64encode, b64decode
218218
from hashlib import sha256
219219
from time import time
220-
from urllib import quote_plus, urlencode
220+
from urllib.parse import quote_plus, urlencode
221221
from hmac import HMAC
222222
223223
def generate_sas_token(uri, key, policy_name, expiry=3600):

0 commit comments

Comments
 (0)