Commit c44898b1 by Calen Pennington

Remove random printing during XModuleDescriptor equality check

parent 2eca8bd0
...@@ -3,7 +3,6 @@ import yaml ...@@ -3,7 +3,6 @@ import yaml
import os import os
from lxml import etree from lxml import etree
from pprint import pprint
from collections import namedtuple from collections import namedtuple
from pkg_resources import resource_listdir, resource_string, resource_isdir from pkg_resources import resource_listdir, resource_string, resource_isdir
...@@ -503,12 +502,6 @@ class XModuleDescriptor(HTMLSnippet, ResourceTemplates, XBlock): ...@@ -503,12 +502,6 @@ class XModuleDescriptor(HTMLSnippet, ResourceTemplates, XBlock):
all(getattr(self, attr, None) == getattr(other, attr, None) all(getattr(self, attr, None) == getattr(other, attr, None)
for attr in self.equality_attributes)) for attr in self.equality_attributes))
if not eq:
for attr in self.equality_attributes:
pprint((getattr(self, attr, None),
getattr(other, attr, None),
getattr(self, attr, None) == getattr(other, attr, None)))
return eq return eq
def __repr__(self): def __repr__(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment