@@ -136,25 +136,25 @@ def __getitem__(self, key):
136136 """Tests use this."""
137137 def __eq__ (self , other ):
138138 if self .email == other .email and self .local_part == other .local_part and self .domain == other .domain \
139- and self .ascii_email == other .ascii_email and self .ascii_local_part == other .ascii_local_part \
140- and self .ascii_domain == other .ascii_domain \
141- and self .smtputf8 == other .smtputf8 \
142- and repr (sorted (self .mx ) if self .mx else self .mx ) == repr (sorted (other .mx ) if other .mx else other .mx ) \
143- and self .mx_fallback_type == other .mx_fallback_type :
139+ and self .ascii_email == other .ascii_email and self .ascii_local_part == other .ascii_local_part \
140+ and self .ascii_domain == other .ascii_domain \
141+ and self .smtputf8 == other .smtputf8 \
142+ and repr (sorted (self .mx ) if self .mx else self .mx ) == repr (sorted (other .mx ) if other .mx else other .mx ) \
143+ and self .mx_fallback_type == other .mx_fallback_type :
144144 return True
145145 return False
146146
147147 """This helps producing the README."""
148148 def as_constructor (self ):
149149 return "ValidatedEmail(" \
150- + "," .join ("\n {}={}" .format (
151- key ,
152- repr (getattr (self , key )))
153- for key in ('email' , 'local_part' , 'domain' ,
154- 'ascii_email' , 'ascii_local_part' , 'ascii_domain' ,
155- 'smtputf8' , 'mx' , 'mx_fallback_type' )
156- ) \
157- + ")"
150+ + "," .join ("\n {}={}" .format (
151+ key ,
152+ repr (getattr (self , key )))
153+ for key in ('email' , 'local_part' , 'domain' ,
154+ 'ascii_email' , 'ascii_local_part' , 'ascii_domain' ,
155+ 'smtputf8' , 'mx' , 'mx_fallback_type' )
156+ ) \
157+ + ")"
158158
159159
160160def validate_email (
0 commit comments