Skip to content

Commit

Permalink
fix: moves import six inside of region tags (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
telpirion authored Dec 9, 2020
1 parent 5701559 commit d2cc365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions translation/samples/snippets/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

import argparse

import six


def detect_language(text):
# [START translate_detect_language]
Expand Down Expand Up @@ -84,6 +82,7 @@ def translate_text_with_model(target, text, model="nmt"):
Target must be an ISO 639-1 language code.
See https://g.co/cloud/translate/v2/translate-reference#supported_languages
"""
import six
from google.cloud import translate_v2 as translate

translate_client = translate.Client()
Expand All @@ -108,6 +107,7 @@ def translate_text(target, text):
Target must be an ISO 639-1 language code.
See https://g.co/cloud/translate/v2/translate-reference#supported_languages
"""
import six
from google.cloud import translate_v2 as translate

translate_client = translate.Client()
Expand Down

0 comments on commit d2cc365

Please sign in to comment.