Edward,
Can you take a look at this Debian bug and let me know what you think?
You can find it here: http://bugs.debian.org/293571
This is what I've found so far. The _doctest_sub() function in
colorizer.py has responsibility for colorizing doctest blocks. It uses
a regular expression (_DOCTES
> $ cat foo.py
> def nop(x):
> """
> No-operation decorator. Use like this:
[snip]
> But epy/index.html corrupts the @-sign.
>
> nop(x)
> No-operation decorator. Use like this:
>
> >>> @nop
Ok, I see it. It looks like the problem is that epydoc generates:
@nop
rather than:
Package: python-epydoc
Version: 2.1-6
Severity: minor
$ cat foo.py
def nop(x):
"""
No-operation decorator. Use like this:
>>> @nop
... def foo():
... return 42
...
>>> foo()
42
>>>
"""
return x
$ epydoc -o epy foo.py
Importing 1 modules.
[.]
Buildin
3 matches
Mail list logo