Permalink
Browse files

Added s.u.pm.HASSUBSET.__str__

  • Loading branch information...
1 parent dfa6a36 commit bb13caf1d54ba31d1cedac6a3ce888900698c168 @eallik committed Dec 4, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 spinoff/util/pattern_matching.py
@@ -243,6 +243,9 @@ def __eq__(self, other):
else:
raise TypeError("a dict or a list is required")
+ def __str__(self):
+ return 'HASSUBSET(%r)' % self.items
+
def HASITEMS(*args, **kwargs):
warnings.warn("HASITEMS has been deprecated in favor of HASSUBSET", DeprecationWarning)

0 comments on commit bb13caf

Please sign in to comment.