fix bug
This commit is contained in:
parent
c36667cf57
commit
e3e92a2884
@ -36,7 +36,7 @@ def usage(name):
|
||||
|
||||
def main(argc, argv):
|
||||
accepted_languages = set(list(googletrans.LANGCODES)
|
||||
+ list(googletrans.LANGUAGES));
|
||||
+ list(googletrans.LANGUAGES) + [ "auto" ]);
|
||||
good = True;
|
||||
isatty = stdout.isatty();
|
||||
translator = googletrans.Translator();
|
||||
@ -79,7 +79,7 @@ def main(argc, argv):
|
||||
translation.pronunciation
|
||||
);
|
||||
else:
|
||||
printf(stdout, "%s\n", translation.text);
|
||||
fprintf(stdout, "%s\n", translation.text);
|
||||
return 0;
|
||||
|
||||
exit(main(len(sys.argv), sys.argv));
|
||||
|
Loading…
Reference in New Issue
Block a user