Module Expr Str Import alias Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body With Call NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Print Str Expr Call NameLoad Num For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num If CompareIn Call AttributeLoad NameLoad attr ListLoad Str Str body Print BinOpAdd Str NameLoad orelse If CompareNotEq NameLoad NameLoad body If NameLoad body With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num orelse Print BinOpAdd Str NameLoad
N/A N/A 

Linkfix - a companion to sphinx's linkcheck builder.

Uses the linkcheck's output file to fix links in docs.

Originally created for this issue:
https://github.com/scrapy/scrapy/issues/606

Author: dufferzafar
 N/A re N/A _filename None N/A _contents None N/A line_re N/A N/A re compile (.*)\:\d+\:\s\[(.*)\]\s(?:(.*)\sto\s(.*)|(.*)) N/A N/A N/A N/A open build/linkcheck/output.txt out N/A N/A output_lines N/A N/A out readlines N/A N/A N/A IOError N/A N/A linkcheck output not found; please run linkcheck first. N/A N/A exit 1 N/A line output_lines N/A N/A match N/A N/A re match line_re line N/A match N/A N/A newfilename N/A N/A match group 1 N/A errortype N/A N/A match group 2 N/A N/A N/A N/A errortype lower N/A broken local N/A N/A N/A Not Fixed:  line N/A N/A N/A newfilename _filename N/A N/A _filename N/A N/A N/A open _filename w _file N/A N/A N/A N/A _file write _contents N/A _filename newfilename N/A N/A open _filename _file N/A N/A _contents N/A N/A _file read N/A _contents N/A N/A _contents replace N/A N/A match group 3 N/A N/A match group 4 N/A N/A N/A Not Understood:  line