Skip to content

Commit d1cc395

Browse files
author
blechdom
committed
fixed travis errors
1 parent a188c08 commit d1cc395

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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-
r"{|}~-]+)*)(\sat\s+)((?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+"
95-
r"[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)