Permalink
Browse files

Better debug rendering for python3

  • Loading branch information...
jpic committed Sep 25, 2013
1 parent 25d8eab commit e70ca7de414c0e9bd9286a7125e4f198404a4597
Showing with 2 additions and 2 deletions.
  1. +2 −2 rules_light/registry.py
View
@@ -107,10 +107,10 @@ def rule_text_name(self, rule):
return u'True'
elif rule is False:
return u'False'
elif hasattr(rule, '__class__'):
return rule.__class__.__name__
elif hasattr(rule, '__name__'):
return rule.__name__
elif hasattr(rule, '__class__'):
return rule.__class__.__name__
else:
return smart_text(rule)

0 comments on commit e70ca7d

Please sign in to comment.