Skip to content

Commit

Permalink
Merge pull request #6 from Carreau/full-qualified
Browse files Browse the repository at this point in the history
Use full qualified name in traitlet error.
  • Loading branch information
minrk committed Apr 16, 2015
2 parents 86850a2 + 6ed3b7a commit f85a7f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions traitlets/traitlets.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,8 +943,8 @@ def info(self):
if isinstance(self.klass, py3compat.string_types):
klass = self.klass
else:
klass = self.klass.__name__
result = 'a subclass of ' + klass
klass = self.klass.__module__+'.'+self.klass.__name__
result = "a subclass of '%s'" % klass
if self.allow_none:
return result + ' or None'
return result
Expand Down

0 comments on commit f85a7f3

Please sign in to comment.