@@ -410,9 +410,11 @@ def write_temp_po_files(
410
410
pofile .append (
411
411
POEntry (
412
412
msgid = clean_string (english [index ]),
413
- msgstr = clean_string (disclaimers_text [index ])
414
- if language_code != "en"
415
- else "" ,
413
+ msgstr = (
414
+ clean_string (disclaimers_text [index ])
415
+ if language_code != "en"
416
+ else ""
417
+ ),
416
418
)
417
419
)
418
420
# noqa: E501
@@ -797,21 +799,21 @@ def insert_after(after_this, what_to_insert):
797
799
798
800
# s2a2: Exceptions and Limitations.
799
801
nt = name_and_text (soup .find (id = "s2a2" ))
800
- messages [
801
- "s2a2_license_grant_exceptions "
802
- ] = f"<strong> { nt [ 'name' ] } </strong> { nt [ 'text' ] } "
802
+ messages ["s2a2_license_grant_exceptions" ] = (
803
+ f"<strong> { nt [ 'name' ] } </strong> { nt [ 'text' ] } "
804
+ )
803
805
804
806
# s2a3: Term.
805
807
nt = name_and_text (soup .find (id = "s2a3" ))
806
- messages [
807
- "s2a3_license_grant_term "
808
- ] = f"<strong> { nt [ 'name' ] } </strong> { nt [ 'text' ] } "
808
+ messages ["s2a3_license_grant_term" ] = (
809
+ f"<strong> { nt [ 'name' ] } </strong> { nt [ 'text' ] } "
810
+ )
809
811
810
812
# s2a4: Media and formats; technical modifications allowed.
811
813
nt = name_and_text (soup .find (id = "s2a4" ))
812
- messages [
813
- "s2a4_license_grant_media "
814
- ] = f"<strong> { nt [ 'name' ] } </strong> { nt [ 'text' ] } "
814
+ messages ["s2a4_license_grant_media" ] = (
815
+ f"<strong> { nt [ 'name' ] } </strong> { nt [ 'text' ] } "
816
+ )
815
817
816
818
# s2a5: scope/grant/downstream
817
819
# The title is just the prefix to the list of items, which are in their
@@ -970,9 +972,9 @@ def insert_after(after_this, what_to_insert):
970
972
971
973
s4b = nested_text (soup .find (id = "s4b" ))
972
974
if unit .endswith ("-sa" ):
973
- messages [
974
- "s4_sui_generics_database_rights_adapted_material_sa"
975
- ] = s4b
975
+ messages ["s4_sui_generics_database_rights_adapted_material_sa" ] = (
976
+ s4b
977
+ )
976
978
else :
977
979
messages ["s4_sui_generics_database_rights_adapted_material" ] = s4b
978
980
messages ["s4_sui_generics_database_rights_comply_s3a" ] = nested_text (
0 commit comments