Commit fc86ece8 authored by Stefan Behnel's avatar Stefan Behnel

Py2.4/2.7 doctest fix

parent 2c1b7967
......@@ -61,11 +61,9 @@ def index_object(object o, int i):
'z'
>>> index_object("abcdef...z", 100)
Traceback (most recent call last):
...
IndexError: string index out of range
>>> index_object(None, 0)
Traceback (most recent call last):
TypeError: 'NoneType' object is not subscriptable
>>> try: index_object(None, 0)
... except TypeError: pass
"""
return o[i]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment