diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2022-03-12 16:21:02 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-13 05:21:02 +0800 |
| commit | ccfef6f1076c9581e7641d52664ce90de0fd7e0a (patch) | |
| tree | edd5da17cea47f015382bc2657220233cde84b3e /src/cryptography/x509 | |
| parent | 93a01b7f056efb01a32835c0517240329cf284c2 (diff) | |
| download | cryptography-ccfef6f1076c9581e7641d52664ce90de0fd7e0a.tar.gz | |
Convert some old-style formatting to f strings (#6945)
Diffstat (limited to 'src/cryptography/x509')
| -rw-r--r-- | src/cryptography/x509/name.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/x509/name.py b/src/cryptography/x509/name.py index fa5094798..cb5649131 100644 --- a/src/cryptography/x509/name.py +++ b/src/cryptography/x509/name.py @@ -172,7 +172,7 @@ class NameAttribute: if attr_name is None: attr_name = self.rfc4514_attribute_name - return "%s=%s" % (attr_name, _escape_dn_value(self.value)) + return f"{attr_name}={_escape_dn_value(self.value)}" def __eq__(self, other: object) -> bool: if not isinstance(other, NameAttribute): |
