﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
1046	[patch]syndication_feeds's bug for TypeError	junzhang.jn@…	Adrian Holovaty	"at feeds.py's line 35:

{{{
if callable(attr):
    try:
        return attr(obj)
    except TypeError:
        return attr()
}}}

this code will hide TypeError that zhe 'attr(obj)' function throws.
so , i use below code to fix the little bug.

{{{
if callable(attr):
    if hasattr( attr , 'func_code' ):
        argcount = attr.func_code.co_argcount
    else:
        argcount = attr.__call__.func_code.co_argcount
    if argcount == 2:
        # one is self
        return attr(obj)
    else:
        return attr()
}}}
"	defect	closed	contrib.syndication		normal	fixed			Unreviewed	1	0	0	0	0	0
