Skip to content

Commit adfffdc

Browse files
gcf-owl-bot[bot]dandhlee
authored andcommitted
chore(python): use black==22.3.0 (#172)
Source-Link: googleapis/synthtool@6fab84a Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:7cffbc10910c3ab1b852c05114a08d374c195a81cdec1d4a67a1d129331d0bfe Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent add058b commit adfffdc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

media-translation/snippets/noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# WARNING - WARNING - WARNING - WARNING - WARNING
3030
# WARNING - WARNING - WARNING - WARNING - WARNING
3131

32-
BLACK_VERSION = "black==19.10b0"
32+
BLACK_VERSION = "black==22.3.0"
3333

3434
# Copy `noxfile_config.py` to your directory and modify it instead.
3535

@@ -253,7 +253,7 @@ def py(session: nox.sessions.Session) -> None:
253253

254254

255255
def _get_repo_root() -> Optional[str]:
256-
""" Returns the root folder of the project. """
256+
"""Returns the root folder of the project."""
257257
# Get root of this repository. Assume we don't have directories nested deeper than 10 items.
258258
p = Path(os.getcwd())
259259
for i in range(10):

media-translation/snippets/translate_from_mic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ def listen_print_loop(responses):
114114
# END_OF_SINGLE_UTTERANCE event.
115115
if response.speech_event_type == SpeechEventType.END_OF_SINGLE_UTTERANCE:
116116

117-
print(u"\nFinal translation: {0}".format(translation))
117+
print("\nFinal translation: {0}".format(translation))
118118
return 0
119119

120120
result = response.result
121121
translation = result.text_translation_result.translation
122122

123-
print(u"\nPartial translation: {0}".format(translation))
123+
print("\nPartial translation: {0}".format(translation))
124124

125125

126126
def do_translation_loop():

0 commit comments

Comments
 (0)