From: Arun Babu Neelicattu abn@redhat.com
Use shallow copy of local symbol table. Using dictionary returned by locals() will not work as expected in python3. --- bugzilla/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bugzilla/base.py b/bugzilla/base.py index 31cfc51..5f91b27 100644 --- a/bugzilla/base.py +++ b/bugzilla/base.py @@ -379,7 +379,7 @@ class BugzillaBase(object): # Hook to allow Bugzilla autodetection without weirdly overriding # __init__ if self._init_class_from_url(url, sslverify): - kwargs = locals() + kwargs = locals().copy() del(kwargs["self"])
# pylint: disable=non-parent-init-called
On 04/25/2014 09:36 AM, abn@redhat.com wrote:
From: Arun Babu Neelicattu abn@redhat.com
Use shallow copy of local symbol table. Using dictionary returned by locals() will not work as expected in python3.
bugzilla/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bugzilla/base.py b/bugzilla/base.py index 31cfc51..5f91b27 100644 --- a/bugzilla/base.py +++ b/bugzilla/base.py @@ -379,7 +379,7 @@ class BugzillaBase(object): # Hook to allow Bugzilla autodetection without weirdly overriding # __init__ if self._init_class_from_url(url, sslverify):
kwargs = locals()
kwargs = locals().copy() del(kwargs["self"]) # pylint: disable=non-parent-init-called
Thanks, pushed now.
- Cole
python-bugzilla@lists.stg.fedorahosted.org