summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-10-07 22:35:45 -0600
committerJason Gerard DeRose <jderose@redhat.com>2008-10-07 22:35:45 -0600
commitfec6fc2e8c373c698966816ee97fe3a660eb503e (patch)
tree3be91d8012b26204d6b3f8c6d240072017068a8a
parentdeb8e3dfc899cfc7ee31f47c1ba7c4301c58fc51 (diff)
downloadfreeipa-fec6fc2e8c373c698966816ee97fe3a660eb503e.tar.gz
freeipa-fec6fc2e8c373c698966816ee97fe3a660eb503e.tar.xz
freeipa-fec6fc2e8c373c698966816ee97fe3a660eb503e.zip
Fixed example in raise_TypeError() docstring (thanks, mnagy)
-rw-r--r--ipalib/errors.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py
index a961ecb60..097747ac7 100644
--- a/ipalib/errors.py
+++ b/ipalib/errors.py
@@ -43,12 +43,12 @@ def raise_TypeError(value, type_, name):
Here is an example:
- >>> raise_TypeError('message', str, u'Hello.')
+ >>> raise_TypeError(u'Hello, world!', str, 'message')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
- File "/home/jderose/projects/freeipa2/ipalib/errors.py", line 61, in raise_TypeError
+ File "ipalib/errors.py", line 65, in raise_TypeError
raise e
- TypeError: message: need a <type 'str'>; got u'Hello.'
+ TypeError: message: need a <type 'str'>; got u'Hello, world!'
:param value: The value (of incorrect type) passed as argument.
:param type_: The type expected for the argument.