Project

Profile

Help

Issue #8315

Updated by daviddavis over 3 years ago

``` 
 $ grep "_(f" **/*.py                                     
 pulpcore/app/models/content.py:                  _(f"Checksum algorithms {bad_keys} are forbidden for this Pulp instance.") 
 pulpcore/app/models/content.py:                  _(f"Missing required checksum algorithms {missing_keys}.") 
 pulpcore/app/models/content.py:                          _(f"Checksum algorithm {algorithm} forbidden for this Pulp instance.") 
 pulpcore/app/models/content.py:                          _(f"Checksum algorithm {algorithm} forbidden for this Pulp instance.") 
 pulpcore/app/serializers/content.py:                  _(f"Checksum algorithms {bad_algs} forbidden for this Pulp instance.") 
 ``` 

 Variables in f-strings are interpolated before being passed to gettext. We need to switch these to `_("{}").format(var)`. 

Back