diff options
| author | lassulus <git@lassul.us> | 2023-07-28 23:59:58 +0200 |
|---|---|---|
| committer | lassulus <git@lassul.us> | 2023-07-28 23:59:58 +0200 |
| commit | 02e790c9fb6965e28f1573841181f610ff1599eb (patch) | |
| tree | 5462ffe78c3708806821d893baa6a2c81137812f /makefu/5pkgs/kalauerbot/translate.patch | |
| parent | fd07efa9e97b0984856a97a44ad0b97130db92f7 (diff) | |
| parent | 3f37acf6f9ea4af21195cd7b0a37ba359105a69d (diff) | |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/5pkgs/kalauerbot/translate.patch')
| -rw-r--r-- | makefu/5pkgs/kalauerbot/translate.patch | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/makefu/5pkgs/kalauerbot/translate.patch b/makefu/5pkgs/kalauerbot/translate.patch deleted file mode 100644 index 6ff820726..000000000 --- a/makefu/5pkgs/kalauerbot/translate.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff --git a/googletrans/client.py b/googletrans/client.py -index 89c2237..c203b44 100644 ---- a/googletrans/client.py -+++ b/googletrans/client.py -@@ -190,6 +190,13 @@ class Translator(object): - pass - if not PY3 and isinstance(pron, unicode) and isinstance(origin, str): # pragma: nocover - origin = origin.decode('utf-8') -+ -+ if pron is None: -+ try: -+ pron = data[0][2][2] -+ except: # pragma: nocover -+ pass -+ - if dest in EXCLUDES and pron == origin: - pron = translated |
