Changeset 3108:9f1103cfd539 in livinglogic.python.xist

Show
Ignore:
Timestamp:
01/05/08 23:38:16 (12 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Support languages in docformat.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/xist/ns/doc.py

    r3107 r3108  
    228228    # Determine whether thing has a docstring 
    229229    if format is None and inspect.ismodule(thing): 
    230         format = getattr(thing, "__docformat__", "plaintext") 
     230        format = getattr(thing, "__docformat__", "plaintext").split()[0] 
    231231    doc = getdoc(thing, format) 
    232232    if doc is xsc.Null: