Changeset - 4fb8e175cbb9
[Not reviewed]
default
0 1 0
Mads Kiilerich (mads) - 5 years ago 2021-02-16 21:59:00
mads@kiilerich.com
diffs: drop as_html default value for mandatory argument 'parsed_lines'
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/diffs.py
Show inline comments
 
@@ -60,16 +60,16 @@ def _safe_id(idstring):
 
    idstring = re.sub(r'\s', "_", idstring)
 
    # Remove everything that is not a hyphen or a member of \w
 
    idstring = re.sub(r'(?!-)\W', "", idstring).lower()
 
    return idstring
 

	
 

	
 
def as_html(table_class='code-difftable', line_class='line',
 
def as_html(parsed_lines, table_class='code-difftable', line_class='line',
 
            old_lineno_class='lineno old', new_lineno_class='lineno new',
 
            no_lineno_class='lineno',
 
            code_class='code', parsed_lines=None):
 
            code_class='code'):
 
    """
 
    Return given diff as html table with customized css classes
 
    """
 
    _html_empty = True
 
    _html = []
 
    _html.append('''<table class="%(table_class)s">\n''' % {
0 comments (0 inline, 0 general)