diff options
Diffstat (limited to 'cryptography/utils.py')
-rw-r--r-- | cryptography/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cryptography/utils.py b/cryptography/utils.py index e4ec6ccf..8fbcabc5 100644 --- a/cryptography/utils.py +++ b/cryptography/utils.py @@ -28,6 +28,10 @@ def register_interface(iface): return register_decorator +def read_only_property(name): + return property(lambda self: getattr(self, name)) + + class InterfaceNotImplemented(Exception): pass |