@@ -136,25 +136,25 @@ def __getitem__(self, key):
136
136
"""Tests use this."""
137
137
def __eq__ (self , other ):
138
138
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 :
144
144
return True
145
145
return False
146
146
147
147
"""This helps producing the README."""
148
148
def as_constructor (self ):
149
149
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
+ + ")"
158
158
159
159
160
160
def validate_email (
0 commit comments