Skip to content

Commit 5e91aa0

Browse files
Fix missing substitution in inquire_property
Resolves: #195
1 parent 3cb0c75 commit 5e91aa0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gssapi/_utils.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import six
55
import decorator as deco
66

7+
from typing import Optional
8+
79
from gssapi.raw.misc import GSSError
810

911

@@ -43,7 +45,7 @@ def getter(self):
4345
return property(getter, setter)
4446

4547

46-
def inquire_property(name, doc=None):
48+
def inquire_property(name: str, doc: Optional[str] = None):
4749
"""Creates a property based on an inquire result
4850
4951
This method creates a property that calls the
@@ -59,7 +61,7 @@ def inquire_property(name, doc=None):
5961

6062
def inquire_property(self):
6163
if not self._started:
62-
msg = ("Cannot read {0} from a security context whose "
64+
msg = (f"Cannot read {name} from a security context whose "
6365
"establishment has not yet been started.")
6466
raise AttributeError(msg)
6567

0 commit comments

Comments
 (0)