@@ -116,7 +116,7 @@ def _validate_url_schemes(
116116    except  Exception  as  err :
117117        raise  ValueError ("Invalid YAML string" ) from  err 
118118    if  isinstance (output , str ):
119-         output  =  { k :  None   for   k   in   output .split ("," )} 
119+         output  =  dict . fromkeys ( output .split ("," )) 
120120    if  not  isinstance (output , dict ):
121121        raise  ValueError ("Expecting a comma-delimited str or YAML dictionary" )
122122    return  output 
@@ -278,7 +278,7 @@ def parse(self, inputstring: str, document: nodes.document) -> None:
278278            for  i , line  in  enumerate (inputstring .split ("\n " )):
279279                if  len (line ) >  document .settings .line_length_limit :
280280                    error  =  document .reporter .error (
281-                         f"Line { i + 1 }  
281+                         f"Line { i   +   1 }  
282282                        f" { document .settings .line_length_limit }  
283283                    )
284284                    document .append (error )
@@ -479,7 +479,7 @@ def visit_rubric_html(self, node):
479479    So here we override the visit/depart methods to output the correct <h> element 
480480    """ 
481481    if  "level"  in  node :
482-         self .body .append (self .starttag (node , f' h{ node [" level" ] } '  , "" , CLASS = "rubric" ))
482+         self .body .append (self .starttag (node , f" h{ node [' level' ] } "  , "" , CLASS = "rubric" ))
483483    else :
484484        self .body .append (self .starttag (node , "p" , "" , CLASS = "rubric" ))
485485
@@ -490,7 +490,7 @@ def depart_rubric_html(self, node):
490490    See explanation in `visit_rubric_html` 
491491    """ 
492492    if  "level"  in  node :
493-         self .body .append (f' </h{ node [" level" } \n '  )
493+         self .body .append (f" </h{ node [' level' } \n "  )
494494    else :
495495        self .body .append ("</p>\n " )
496496
0 commit comments