From 14821667bddf0bbad6c3e2a23b1411953cf7f816 Mon Sep 17 00:00:00 2001 From: David Mailhot Date: Wed, 12 Dec 2018 14:50:15 -0800 Subject: [PATCH] Update DLP redact image code sample region to include mimetype import In response to feedback where a user was confused that the mimetype import was missing from the code sample in the documentation. --- dlp/redact.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlp/redact.py b/dlp/redact.py index 85fb9ef6458..18ded151e6b 100644 --- a/dlp/redact.py +++ b/dlp/redact.py @@ -18,11 +18,14 @@ from __future__ import print_function import argparse +# [START dlp_redact_image] import mimetypes +# [END dlp_redact_image] import os # [START dlp_redact_image] + def redact_image(project, filename, output_filename, info_types, min_likelihood=None, mime_type=None): """Uses the Data Loss Prevention API to redact protected data in an image.