Patch from Georg Brandl and me for #1493
Remove unbound method objects
diff --git a/Lib/xml/dom/minicompat.py b/Lib/xml/dom/minicompat.py
index c0a797e..2e6cc7e 100644
--- a/Lib/xml/dom/minicompat.py
+++ b/Lib/xml/dom/minicompat.py
@@ -95,7 +95,7 @@
def defproperty(klass, name, doc):
- get = getattr(klass, ("_get_" + name)).im_func
+ get = getattr(klass, ("_get_" + name))
def set(self, value, name=name):
raise xml.dom.NoModificationAllowedErr(
"attempt to modify read-only attribute " + repr(name))