From 2f95146b9be2cf31f5881b2feec1ac342bfbbcb9 Mon Sep 17 00:00:00 2001
From: Calen Pennington <calen.pennington@gmail.com>
Date: Fri, 29 Jun 2012 16:08:54 -0400
Subject: [PATCH] Just use the class name when complaining about
 definition_from_xml not being implemented

---
 common/lib/xmodule/xml_module.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/lib/xmodule/xml_module.py b/common/lib/xmodule/xml_module.py
index d6338aeb39a..fa275c67d31 100644
--- a/common/lib/xmodule/xml_module.py
+++ b/common/lib/xmodule/xml_module.py
@@ -13,7 +13,7 @@ class XmlDescriptor(XModuleDescriptor):
         Return the definition to be passed to the newly created descriptor
         during from_xml
         """
-        raise NotImplementedError("%s does not implement definition_from_xml" % cls.__class__.__name__)
+        raise NotImplementedError("%s does not implement definition_from_xml" % cls.__name__)
 
     @classmethod
     def from_xml(cls, xml_data, system, org=None, course=None):
-- 
GitLab