Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288273 - dev-python/epydoc: add patch for python2.6 tokenizer change
Summary: dev-python/epydoc: add patch for python2.6 tokenizer change
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High enhancement
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-09 09:35 UTC by André Malo
Modified: 2009-12-17 17:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description André Malo 2009-10-09 09:35:24 UTC
epydoc: add patch for python2.6 tokenizer change

Apparently in python 2.6 the tokenizer emits different tokens for comments than before. Comment doc strings (#: foo) are not correctly parsed anymore; see this bug upstream: http://sourceforge.net/tracker/?func=detail&atid=405618&aid=2585292&group_id=32455

I've create a patch there (http://sourceforge.net/tracker/?func=detail&atid=405620&aid=2872545&group_id=32455), but I don't think, it's integrated soon, so it would be nice to add it to the ebuild for now.

Reproducible: Always

Steps to Reproduce:
1. Use python2.6
2. document some code using #: style comments like:

#: foo is important, because bar.
foo = 1

3. run epydoc on that file

Actual Results:  
The doc string is ignored and epydoc emits a warning about empty lines

Expected Results:  
The doc string is applied and no warning should be emitted.
Comment 1 Andrey Grozin gentoo-dev 2009-12-17 17:07:19 UTC
Thanks, incorporated in epydoc-3.0.1-r1.