Skip to content

Commit

Permalink
Improve CRegExp docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
bfroehle committed May 9, 2012
1 parent 9d723ae commit 2fc3cff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion IPython/utils/traitlets.py
Expand Up @@ -1413,7 +1413,10 @@ def validate(self, obj, value):
self.error(obj, value)

class CRegExp(TraitType):
"""A trait for a compiled regular expression."""
"""A casting compiled regular expression trait.
Accepts both strings and compiled regular expressions. The resulting
attribute will be a compiled regular expression."""

info_text = 'a regular expression'

Expand Down

0 comments on commit 2fc3cff

Please sign in to comment.