From f426666576936abd95662a8c8f95d2c751883c3b Mon Sep 17 00:00:00 2001 From: Gus Class Date: Mon, 19 Jun 2017 11:15:29 -0700 Subject: [PATCH] Places format calls inside print function calls. [(#995)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/995) --- samples/analyze/analyze.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/samples/analyze/analyze.py b/samples/analyze/analyze.py index 22fafaf9..c85f9d78 100644 --- a/samples/analyze/analyze.py +++ b/samples/analyze/analyze.py @@ -61,12 +61,12 @@ def analyze_safe_search(path): "Likely", "Very likely") for note in safe_annotations: - print('Time: {}s').format(note.time_offset / 1000000.0) - print('\tadult: {}').format(likely_string[note.adult]) - print('\tspoof: {}').format(likely_string[note.spoof]) - print('\tmedical: {}').format(likely_string[note.medical]) - print('\tracy: {}').format(likely_string[note.racy]) - print('\tviolent: {}\n').format(likely_string[note.violent]) + print('Time: {}s'.format(note.time_offset / 1000000.0)) + print('\tadult: {}'.format(likely_string[note.adult])) + print('\tspoof: {}'.format(likely_string[note.spoof])) + print('\tmedical: {}'.format(likely_string[note.medical])) + print('\tracy: {}'.format(likely_string[note.racy])) + print('\tviolent: {}\n'.format(likely_string[note.violent])) def analyze_faces(path):