Skip to content

Commit f67018c

Browse files
author
blechdom
committed
fixed travis errors
1 parent 14e6c8e commit f67018c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

speech/cloud-client/transcribe_dlp.py

Lines changed: 3 additions & 5 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+
"{|}~-]+)*)(\sat\s+)((?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+"
95+
"[a-z0-9](?:[a-z0-9-]*[a-z0-9]))")
9696

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

@@ -108,13 +108,11 @@ 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

115115
if __name__ == '__main__':
116-
117-
118116
parser = argparse.ArgumentParser(
119117
description=__doc__,
120118
formatter_class=argparse.RawDescriptionHelpFormatter)

0 commit comments

Comments
 (0)