Module Import alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias Assign NameStore ListLoad Str ClassDef bases NameLoad body Expr Str Expr Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad TupleLoad Str Str body Return Num Return Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr If BoolOpOr UnaryOpNot NameLoad UnaryOpNot Call NameLoad GeneratorExp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Call NameLoad NameLoad Return Assign NameStore Dict Str Str Str Str Str Dict Str Str NameLoad NameLoad Str Str Expr Call NameLoad NameLoad Str Expr Call NameLoad NameLoad Str Return Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias For NameStore Call NameLoad Call NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad If BoolOpOr CompareNotEq NameLoad Num CompareNotEq NameLoad Num body Assign NameStore BinOpAdd NameLoad Call NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad BinOpAdd BinOpAdd BinOpAdd BinOpAdd SubscriptLoad NameLoad Slice NameLoad Str SubscriptLoad NameLoad Slice NameLoad NameLoad Str SubscriptLoad NameLoad Slice NameLoad Assign NameStore BinOpAdd NameLoad Call NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad BinOpAdd BinOpAdd BinOpAdd BinOpAdd SubscriptLoad NameLoad Slice NameLoad Str SubscriptLoad NameLoad Slice NameLoad NameLoad Str SubscriptLoad NameLoad Slice NameLoad decorator_list Import alias Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Num Num Return BinOpAdd BinOpMult NameLoad Str BinOpMult NameLoad Str decorator_list Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr While NameLoad body Assign NameStore NameStore NameStore NameStore Str Assign NameStore NameStore ListLoad Assign NameStore NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str body If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr Str CompareNotEq NameLoad BinOpMult Str Num body Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign TupleStore NameStore NameStore SubscriptLoad Call AttributeLoad NameLoad attr Slice Num If Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr Str comprehension NameStore NameLoad body Assign NameStore Str If Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr Str comprehension NameStore NameLoad body Assign NameStore Str Assign NameStore ListLoad Str NameLoad Assign NameStore ListLoad Str NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad Call AttributeLoad NameLoad attr Str If NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Index Num attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr While NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr Continue If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore TupleLoad Str Str If BoolOpOr NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Slice Num SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Slice Num Slice Num If CompareGt Call NameLoad NameLoad Call NameLoad NameLoad body Assign NameStore NameLoad orelse If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Slice UnaryOpUSub Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice UnaryOpUSub Call NameLoad NameLoad If BoolOpAnd CompareLt Call NameLoad NameLoad Num CompareLt Call NameLoad NameLoad Num body Assign NameStore TupleLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad Str keyword Call AttributeLoad NameLoad attr Str Assign NameStore TupleLoad Str Str orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad Str keyword Call AttributeLoad NameLoad attr Str Assign NameStore TupleLoad Str Str orelse Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore TupleLoad Str Str orelse Assign NameStore Str Assign NameStore ListLoad Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str Str Str ListLoad Call AttributeLoad Str attr NameLoad NameLoad NameLoad NameLoad Dict Str Str Str NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Index Num Dict Str Str Str NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Index Num Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Break Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore NameStore ListComp Call NameLoad BoolOpOr NameLoad Num comprehension NameStore SubscriptLoad Call AttributeLoad NameLoad attr Slice Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore NameStore NameLoad AugAssignAdd NameStore NameLoad AugAssignAdd NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr While BoolOpOr CompareLt NameLoad NameLoad CompareLt NameLoad NameLoad NameLoad body Assign NameStore Str If NameLoad body Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num If CompareNotEq CompareEq NameLoad Str NameLoad body Assign NameStore CompareEq NameLoad Str Assign NameStore IfExp NameLoad Str Str Assign NameStore Dict Str Str Str NameLoad Dict Str Str BinOpSub NameLoad Num ListLoad Dict Str Str BinOpSub NameLoad Num ListLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Num If CompareEq NameLoad Str body Assign NameStore ListLoad Str Str orelse If CompareEq NameLoad Str body Assign NameStore Str Assign NameStore ListLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Str Assign NameStore ListLoad NameLoad orelse If BoolOpAnd CompareEq NameLoad Str NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Str Dict Assign SubscriptStore NameLoad Index Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str NameLoad Assign NameStore ListLoad NameLoad orelse If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index Num BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num Call NameLoad Str Assign NameStore BinOpAdd Str NameLoad Break orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Return NameLoad For NameStore NameLoad body If CompareEq NameLoad Str body AugAssignAdd NameStore Num orelse AugAssignAdd NameStore Num Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BoolOpAnd NameLoad CompareEq SubscriptLoad NameLoad Index Num Str handlers ExceptHandler type NameLoad body Pass For NameStore NameLoad body For NameStore SubscriptLoad NameLoad Index Str body For NameStore NameLoad body Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If CompareEq SubscriptLoad NameLoad Index Str Str body If CompareEq Call NameLoad NameLoad Num body Assign SubscriptStore NameLoad Index Str Str orelse If CompareEq Call NameLoad NameLoad Num body Assign SubscriptStore NameLoad Index Str Str orelse If CompareEq Call NameLoad NameLoad Call NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Str attr ListComp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad If BoolOpAnd CompareIn Str NameLoad CompareIn NameLoad SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index NameLoad BinOpMod Call NameLoad Str SubscriptLoad NameLoad Index NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Str attr ListComp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad If BoolOpAnd CompareIn Str NameLoad CompareIn NameLoad SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index NameLoad BinOpMod Call NameLoad Str SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list decorator_list
N/A N/A os.path trac.core * trac.mimeview.api content_to_unicode IHTMLPreviewRenderer Mimeview trac.util.html escape Markup trac.util.text expandtabs trac.util.translation _ trac.web.chrome Chrome add_script add_stylesheet N/A __all__ N/A PatchRenderer PatchRenderer N/A Component N/A N/A HTML renderer for patches in unified diff format.

    This uses the same layout as in the wiki diff view or the changeset view.
     N/A N/A implements IHTMLPreviewRenderer get_quality_ratio N/A N/A self mimetype N/A N/A N/A N/A mimetype N/A text/x-diff text/x-patch N/A N/A 8 N/A 0 N/A render N/A N/A self context mimetype content filename rev N/A None None N/A N/A req N/A context req N/A content N/A content_to_unicode N/A self env content mimetype N/A changes N/A N/A self _diff_to_hdf N/A N/A content splitlines N/A N/A Mimeview N/A self env tab_width N/A N/A N/A changes N/A N/A any N/A N/A c N/A diffs N/A c changes N/A N/A N/A N/A N/A self log debug Invalid unified diff content: %.40r... (%d characters) content N/A len content N/A N/A data N/A diff no_id changes longcol shortcol N/A style inline True changes File N/A N/A add_script req common/js/diff.js N/A N/A add_stylesheet req common/css/diff.css N/A N/A N/A N/A Chrome N/A self env render_template req diff_div.html data fragment True N/A _diff_to_hdf N/A N/A self difflines tabwidth N/A N/A N/A 
        Translate a diff file into something suitable for inclusion in HDF.
        The result is [(filename, revname_old, revname_new, changes)],
        where changes has the same format as the result of
        `trac.versioncontrol.diff.hdf_diff`.

        If the diff cannot be parsed, this method returns None.
         _markup_intraline_change N/A N/A fromlines tolines N/A N/A trac.versioncontrol.diff get_change_extent N/A i N/A xrange N/A len fromlines N/A N/A N/A fr to N/A N/A fromlines N/A i N/A tolines N/A i N/A N/A start end N/A get_change_extent fr to N/A N/A N/A start 0 N/A end 0 N/A N/A last N/A end N/A len fr N/A N/A fromlines N/A i N/A N/A N/A N/A N/A fr N/A start N/A fr N/A start last N/A fr N/A last N/A last N/A end N/A len to N/A N/A tolines N/A i N/A N/A N/A N/A N/A to N/A start N/A to N/A start last N/A to N/A last N/A N/A re N/A space_re N/A N/A re compile  ( +)|^  htmlify N/A N/A match N/A N/A N/A N/A div mod N/A divmod N/A len N/A N/A match group 0 2 N/A N/A N/A div &nbsp;  N/A mod &nbsp; N/A N/A comments N/A N/A changes N/A N/A lines N/A iter difflines N/A N/A N/A line N/A N/A lines next N/A True N/A N/A oldpath oldrev newpath newrev N/A oldinfo newinfo N/A N/A binary False N/A N/A N/A N/A line startswith ---  N/A N/A N/A N/A N/A N/A line startswith Index:  N/A line N/A = 67 N/A N/A N/A N/A comments append line N/A N/A line GIT binary patch N/A N/A binary True N/A diffcmd_line N/A comments N/A 0 N/A N/A oldpath newpath N/A N/A N/A diffcmd_line split N/A -2 N/A N/A any N/A N/A N/A c startswith new file N/A c comments N/A N/A oldpath /dev/null N/A N/A any N/A N/A N/A c startswith deleted file N/A c comments N/A N/A newpath /dev/null N/A oldinfo N/A oldpath N/A newinfo N/A newpath N/A index N/A c N/A c comments N/A N/A c startswith index  N/A index N/A N/A N/A oldrev newrev N/A N/A N/A N/A N/A N/A index N/A 0 split N/A -1 split .. N/A N/A N/A oldinfo append oldrev N/A N/A N/A newinfo append newrev N/A line N/A N/A lines next N/A line N/A N/A N/A N/A comments append line N/A line N/A N/A lines next N/A N/A line N/A N/A lines next N/A N/A N/A N/A oldinfo N/A newinfo N/A N/A oldinfo N/A N/A line split None 2 N/A N/A N/A len oldinfo 1 N/A N/A oldpath N/A oldinfo N/A 1 N/A N/A N/A len oldinfo 2 N/A N/A oldrev N/A oldinfo N/A 2 N/A line N/A N/A lines next N/A N/A N/A N/A line startswith +++  N/A N/A N/A N/A N/A self log debug expected +++ after ---, got %s line N/A None N/A newinfo N/A N/A line split None 2 N/A N/A N/A len newinfo 1 N/A N/A newpath N/A newinfo N/A 1 N/A N/A N/A len newinfo 2 N/A N/A newrev N/A newinfo N/A 2 N/A shortrev N/A old new N/A N/A oldpath newpath N/A N/A sep N/A N/A re compile ([/.~\\]) N/A commonprefix N/A N/A join N/A N/A N/A os path commonprefix N/A N/A N/A sep split newpath N/A N/A sep split oldpath N/A commonsuffix N/A N/A join N/A N/A N/A N/A os path commonprefix N/A N/A N/A N/A sep split newpath N/A -1 N/A N/A N/A sep split oldpath N/A -1 N/A -1 N/A N/A N/A len commonprefix N/A len commonsuffix N/A N/A common commonprefix N/A N/A commonsuffix N/A N/A common N/A N/A commonsuffix lstrip / N/A a N/A oldpath N/A N/A N/A len commonsuffix N/A b N/A newpath N/A N/A N/A len commonsuffix N/A N/A N/A N/A len a 4 N/A N/A len b 4 N/A N/A shortrev N/A a b N/A N/A N/A oldpath /dev/null N/A N/A common N/A _ new file %(new)s new N/A N/A newpath lstrip b/ N/A shortrev N/A - + N/A N/A N/A newpath /dev/null N/A N/A common N/A _ deleted file %(deleted)s deleted N/A N/A oldpath lstrip a/ N/A shortrev N/A + - N/A N/A common N/A (a) %s vs. (b) %s N/A oldpath newpath N/A shortrev N/A a b N/A N/A common N/A groups N/A N/A groups_title N/A N/A N/A N/A changes append N/A change props comments binary diffs diffs_title old new edit N/A N/A N/A join comments binary groups groups_title N/A path rev shortrev common N/A N/A join N/A oldinfo N/A 1 N/A shortrev N/A 0 N/A path rev shortrev common N/A N/A join N/A newinfo N/A 1 N/A shortrev N/A 1 N/A comments N/A N/A line N/A N/A lines next N/A line N/A N/A r N/A N/A re match @@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(.*) line N/A N/A r N/A N/A N/A blocks N/A N/A N/A N/A groups append blocks N/A N/A fromline fromend toline toend N/A N/A int N/A x 1 N/A x N/A N/A N/A r groups N/A 4 N/A N/A N/A groups_title append N/A N/A r group 5 N/A last_type extra None N/A fromend fromline N/A toend toline N/A line N/A N/A lines next N/A N/A N/A fromline fromend N/A toline toend extra N/A N/A command N/A line N/A N/A N/A command line N/A N/A line N/A 0 N/A line N/A 1 N/A N/A N/A command last_type N/A N/A last_type N/A command N/A kind N/A last_type unmod mod N/A block N/A type base changed kind N/A offset lines N/A fromline 1 N/A N/A offset lines N/A toline 1 N/A N/A N/A N/A blocks append block N/A N/A block N/A blocks N/A -1 N/A N/A command N/A N/A sides N/A base changed N/A N/A N/A command + N/A N/A last_side changed N/A sides N/A last_side N/A N/A N/A command - N/A N/A last_side base N/A sides N/A last_side N/A N/A N/A N/A command \ last_side N/A N/A meta N/A N/A N/A block N/A last_side setdefault meta N/A N/A N/A meta N/A N/A len N/A N/A block N/A last_side N/A lines True N/A sides N/A last_side N/A N/A N/A command @ N/A N/A N/A groups_title N/A -1 N/A %s (%s) N/A N/A groups_title N/A -1 N/A _ this hunk was shorter than expected N/A line N/A @ line N/A N/A N/A N/A N/A N/A self log debug expected +, - or \, got %s command N/A None N/A side sides N/A N/A N/A side base N/A N/A fromline 1 N/A N/A toline 1 N/A N/A N/A N/A N/A block N/A side N/A lines append line N/A line N/A N/A lines next N/A extra N/A line N/A N/A line N/A 0 \ N/A N/A N/A StopIteration N/A N/A N/A o changes N/A N/A group N/A o N/A diffs N/A N/A b group N/A N/A N/A base changed N/A N/A b N/A base N/A b N/A changed N/A N/A f t N/A N/A base N/A lines N/A changed N/A lines N/A N/A N/A b N/A type mod N/A N/A N/A N/A len f 0 N/A N/A N/A b N/A type add N/A N/A N/A N/A len t 0 N/A N/A N/A b N/A type rem N/A N/A N/A N/A len f N/A len t N/A N/A N/A _markup_intraline_change f t N/A i N/A xrange N/A len f N/A N/A line N/A expandtabs N/A f N/A i tabwidth N/A line N/A escape line quotes False N/A line N/A N/A <del> join N/A N/A N/A space_re sub htmlify seg N/A seg N/A N/A line split N/A line N/A N/A line replace </del> N/A N/A f N/A i N/A Markup line N/A N/A N/A meta base N/A i N/A base N/A meta N/A N/A N/A f N/A i N/A N/A Markup <em>%s</em> N/A f N/A i N/A i N/A xrange N/A len t N/A N/A line N/A expandtabs N/A t N/A i tabwidth N/A line N/A escape line quotes False N/A line N/A N/A <ins> join N/A N/A N/A space_re sub htmlify seg N/A seg N/A N/A line split N/A line N/A N/A line replace </ins> N/A N/A t N/A i N/A Markup line N/A N/A N/A meta changed N/A i N/A changed N/A meta N/A N/A N/A t N/A i N/A N/A Markup <em>%s</em> N/A t N/A i N/A changes N/A N/A