[python-bugzilla] [PATCH] Fix autodetection implementation
abn at redhat.com
abn at redhat.com
Fri Apr 25 13:36:48 UTC 2014
From: Arun Babu Neelicattu <abn at 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
--
1.9.0
More information about the python-bugzilla
mailing list