Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Places format calls inside print function calls. [(#995)](GoogleCloud…
Browse files Browse the repository at this point in the history
  • Loading branch information
gguuss authored and danoscarmike committed Sep 30, 2020
1 parent 0e1d2bc commit d612991
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions samples/analyze/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d612991

Please sign in to comment.