Skip to content

Commit 7b4610a

Browse files
authored
Merge pull request #86900 from xyh1/patch-64
string.replace deprecated
2 parents d1cd0a9 + 32cef05 commit 7b4610a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/storage/blobs/storage-quickstart-blobs-python.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: In this quickstart, you create a storage account and a container in
44
author: mhopkins-msft
55

66
ms.author: mhopkins
7-
ms.date: 12/14/2018
7+
ms.date: 08/29/2019
88
ms.service: storage
99
ms.subservice: blobs
1010
ms.topic: quickstart
@@ -155,8 +155,8 @@ The following code downloads the blob uploaded in a previous section. *_DOWNLOAD
155155
```python
156156
# Download the blob(s).
157157
# Add '_DOWNLOADED' as prefix to '.txt' so you can see both files in Documents.
158-
full_path_to_file2 = os.path.join(local_path, string.replace(
159-
local_file_name, '.txt', '_DOWNLOADED.txt'))
158+
full_path_to_file2 = os.path.join(local_path, local_file_name.replace(
159+
'.txt', '_DOWNLOADED.txt'))
160160
print("\nDownloading blob to " + full_path_to_file2)
161161
block_blob_service.get_blob_to_path(
162162
container_name, local_file_name, full_path_to_file2)

0 commit comments

Comments
 (0)