Skip to content

Commit

Permalink
storing available urls as constant
Browse files Browse the repository at this point in the history
  • Loading branch information
terryyz committed Jun 10, 2020
1 parent 1144eae commit 2702e7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions googletrans/constants.py
@@ -1,6 +1,6 @@
DEFAULT_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)'

DEFAULT_SERVICE_URLS = ['translate.google.ac','translate.google.ad','translate.google.ae',
DEFAULT_SERVICE_URLS = ('translate.google.ac','translate.google.ad','translate.google.ae',
'translate.google.al','translate.google.am','translate.google.as',
'translate.google.at','translate.google.az','translate.google.ba',
'translate.google.be','translate.google.bf','translate.google.bg',
Expand Down Expand Up @@ -66,7 +66,7 @@
'translate.google.st','translate.google.td','translate.google.tg',
'translate.google.tk','translate.google.tl','translate.google.tm',
'translate.google.tn','translate.google.to','translate.google.tt',
'translate.google.us','translate.google.vg','translate.google.vu','translate.google.ws']
'translate.google.us','translate.google.vg','translate.google.vu','translate.google.ws')
SPECIAL_CASES = {
'ee': 'et',
}
Expand Down

0 comments on commit 2702e7f

Please sign in to comment.