Skip to content

Commit 915f351

Browse files
author
blechdom
committed
fixed travis errors
1 parent f67018c commit 915f351

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

speech/cloud-client/transcribe_dlp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ def deidentify(file_name, project_id):
9191
# are interpreted as phone numbers
9292

9393
regex = (r".([A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`"
94-
"{|}~-]+)*)(\sat\s+)((?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+"
95-
"[a-z0-9](?:[a-z0-9-]*[a-z0-9]))")
94+
r"{|}~-]+)*)(\sat\s+)((?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+"
95+
r"[a-z0-9](?:[a-z0-9-]*[a-z0-9]))")
9696

9797
updated_transcript = re.sub(regex, r" \1@\3", transcript)
9898

@@ -108,7 +108,7 @@ def deidentify(file_name, project_id):
108108

109109
# Print out the results.
110110
print('Final Result with sensitive content redacted: {}'
111-
.format(dlp_response.item.value))
111+
.format(dlp_response.item.value))
112112
# [END dlp_deidentify_masking]
113113

114114

0 commit comments

Comments
 (0)