lore lint output format appears to be broken
[email protected] Tue, 06 Oct 2009 23:35:56 -0000
| Newsgroups | gmane.comp.python.twisted.bugs |
|---|---|
| Message-ID | <[email protected]> |
New submission from khorn <[email protected]>: When running {{{ lore -olint mydocument.xhtml }}} a traceback similar to the following is produced (using {{{conch\index.xhtml}}} as an example): {{{ conch/index.xhtml:0:0: title and h1 text differch/index) conch/index.xhtml:0:0: only list items allowed in lists conch/index.xhtml:0:0: only list items allowed in lists conch/index.xhtml:0:0: only list items allowed in lists Traceback (most recent call last): File "C:\Python26\scripts\lore.py", line 21, in <module> run() File "c:\documents and settings\hornk\desktop\twisted-dev\twisted\lore\scripts \lore.py", line 149, in run result = runGivenOptions(opt) File "c:\documents and settings\hornk\desktop\twisted-dev\twisted\lore\scripts \lore.py", line 131, in runGivenOptions walker.generate() File "c:\documents and settings\hornk\desktop\twisted-dev\twisted\lore\process .py", line 53, in generate self.df(fullpath, linkrel) File "c:\documents and settings\hornk\desktop\twisted-dev\twisted\lore\default .py", line 54, in <lambda> return lambda file, linkrel: lint.doFile(file, checker) File "c:\documents and settings\hornk\desktop\twisted-dev\twisted\lore\lint.py ", line 218, in doFile checker.check(doc, file) File "c:\documents and settings\hornk\desktop\twisted-dev\twisted\lore\lint.py ", line 24, in check method(dom, filename) File "c:\documents and settings\hornk\desktop\twisted-dev\twisted\lore\lint.py ", line 103, in check_80_columns if node.getAttribute('class', '').endswith('listing'): TypeError: getAttribute() takes exactly 2 arguments (3 given) }}} looks to be a bug in lore also notice that the output of the tile and h1 text comparison is a bit goofy. ---------- Type : enhancement Component: lore Keywords : Priority : normal Nosy : ---------- http://twistedmatrix.com/trac/ticket/4051