Revision 34af39e8 lib/build/sphinx_ext.py

b/lib/build/sphinx_ext.py
164 164
    if include is not None and name not in include:
165 165
      continue
166 166

  
167
    has_default = default is not ht.NoDefault
168
    has_test = not (test is None or test is ht.NoType)
167
    has_default = default is not None or default is not ht.NoDefault
168
    has_test = test is not None or test is not ht.NoType
169 169

  
170 170
    buf = StringIO()
171 171
    buf.write("``%s``" % (rapi_name,))

Also available in: Unified diff