@@ -405,7 +405,7 @@ def source_element(self) -> ET._Element:
405405 Caches the result for future calls.
406406 """
407407 if self ._source_element is None :
408-
408+
409409 log .debug (
410410 f"Parsing source element for target { self .name } " ,
411411 )
@@ -418,7 +418,7 @@ def source_element(self) -> ET._Element:
418418 else :
419419 log .debug (f"Using cached source_element for target { self .name } " )
420420 return self ._source_element
421-
421+
422422 def source_element_with_ids (self ) -> ET ._Element :
423423 """
424424 Returns the root element for the assembled source, after processing with assembly-id method. Caches the result for future calls.
@@ -620,7 +620,7 @@ def ensure_webwork_reps(self) -> None:
620620 # NB: need to include `text()` as well as `@copy|@source|*` in the xpath, since some webwork problems are only included as text/pg source.
621621 if self .source_element ().xpath (".//webwork[@copy|@source|*|text()]" ):
622622 log .debug ("Source contains webwork problems" )
623- #Get list of all assembly-ids for webwork (this will be the assembly-id of the parent of the webwork element).
623+ # Get list of all assembly-ids for webwork (this will be the assembly-id of the parent of the webwork element).
624624 webwork_assembly_ids = self .source_element_with_ids ().xpath (
625625 ".//webwork[@copy|@source|*|text()]/parent::*/@assembly-id"
626626 )
@@ -629,13 +629,17 @@ def ensure_webwork_reps(self) -> None:
629629 if not (
630630 self .generated_dir_abspath () / "webwork" / f"{ id } .xml"
631631 ).exists ():
632- log .debug (f"At least one WeBWorK representation file (for webwork problem with id \" { id } \" ) does not exist, generating" )
632+ log .debug (
633+ f'At least one WeBWorK representation file (for webwork problem with id "{ id } ") does not exist, generating'
634+ )
633635 self .generate_assets (
634636 requested_asset_types = ["webwork" ], only_changed = False
635637 )
636638 break
637639 else :
638- log .debug ("All WeBWorK representation files already exist, not generating" )
640+ log .debug (
641+ "All WeBWorK representation files already exist, not generating"
642+ )
639643 else :
640644 log .debug ("Source does not contain webwork problems" )
641645
0 commit comments