Package: python3-babelfish Version: 0.5.1-1 Severity: normal Tags: patch upstream
This bug affects python3-babelfish for python3 >= 3.4. https://github.com/Diaoul/babelfish/issues/16 Attached upstream commit fixes the issue. Thanks -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (900, 'testing') Architecture: i386 (i686) Kernel: Linux 3.13-1-686-pae (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages python3-babelfish depends on: ii python3-pkg-resources 2.2-1 pn python3:any <none> python3-babelfish recommends no packages. python3-babelfish suggests no packages. -- no debconf information -- Etienne Millon
>From 280b9cfe55f24ca5a26b5786a21fd4c0589f4139 Mon Sep 17 00:00:00 2001 From: Toilal <toilal....@gmail.com> Date: Wed, 26 Mar 2014 11:36:16 +0100 Subject: [PATCH] Fix bug #16. --- babelfish/country.py | 2 +- babelfish/language.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/babelfish/country.py b/babelfish/country.py index 83641fc..6cdd0fa 100644 --- a/babelfish/country.py +++ b/babelfish/country.py @@ -43,7 +43,7 @@ class CountryMeta(type): def __getattr__(cls, name): if name.startswith('from'): return partial(cls.fromcode, converter=name[4:]) - return getattr(cls, name) + return type.__getattribute__(cls, name) class Country(CountryMeta(str('CountryBase'), (object,), {})): diff --git a/babelfish/language.py b/babelfish/language.py index ffa48ef..e2e6235 100644 --- a/babelfish/language.py +++ b/babelfish/language.py @@ -52,7 +52,7 @@ class LanguageMeta(type): def __getattr__(cls, name): if name.startswith('from'): return partial(cls.fromcode, converter=name[4:]) - return getattr(cls, name) + return type.__getattribute__(cls, name) class Language(LanguageMeta(str('LanguageBase'), (object,), {})): -- 1.8.5.5