From 815a24bf3415e18e467e6740c35ade0220002240 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 3 Jun 2016 20:37:24 -0700 Subject: added a repr to the dsa numbers classes (#2961) * added a repr to the dsa numbers classes * fix * another test --- src/cryptography/hazmat/primitives/asymmetric/dsa.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/cryptography/hazmat/primitives/asymmetric/dsa.py b/src/cryptography/hazmat/primitives/asymmetric/dsa.py index 184177e0..511d3464 100644 --- a/src/cryptography/hazmat/primitives/asymmetric/dsa.py +++ b/src/cryptography/hazmat/primitives/asymmetric/dsa.py @@ -166,6 +166,13 @@ class DSAParameterNumbers(object): def __ne__(self, other): return not self == other + def __repr__(self): + return ( + "".format( + self=self + ) + ) + class DSAPublicNumbers(object): def __init__(self, y, parameter_numbers): @@ -198,6 +205,12 @@ class DSAPublicNumbers(object): def __ne__(self, other): return not self == other + def __repr__(self): + return ( + "".format(self=self) + ) + class DSAPrivateNumbers(object): def __init__(self, x, public_numbers): -- cgit v1.2.3