Skip to content

Commit 7b7acd9

Browse files
gguussdanoscarmike
authored andcommitted
Unicode for translation
1 parent 6232076 commit 7b7acd9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

translation/samples/snippets/snippets.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
"""
2525

2626
import argparse
27-
import os
28-
import sys
27+
2928

3029
from google.cloud import translate
3130

translation/samples/snippets/snippets_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def test_translate_text(capsys):
4141
out, _ = capsys.readouterr()
4242
assert u'Halló heimur' in out
4343

44+
4445
def test_translate_utf8(capsys):
4546
text = '나는 파인애플을 좋아한다.'
4647
snippets.translate_text('en', text)

0 commit comments

Comments
 (0)