File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -90,13 +90,9 @@ def __init__(
90
90
raise ConfigurationError (_INVALID_HOST_MSG % ("an IP address" ,))
91
91
except ValueError :
92
92
pass
93
-
94
93
try :
95
- self .__plist = (
96
- self .__fqdn .split ("." )[1 :]
97
- if len (self .__fqdn .split ("." )) > 2
98
- else self .__fqdn .split ("." )
99
- )
94
+ split_fqdn = self .__fqdn .split ("." )
95
+ self .__plist = split_fqdn [1 :] if len (split_fqdn ) > 2 else split_fqdn
100
96
except Exception :
101
97
raise ConfigurationError (_INVALID_HOST_MSG % (fqdn ,)) from None
102
98
self .__slen = len (self .__plist )
Original file line number Diff line number Diff line change @@ -90,13 +90,9 @@ def __init__(
90
90
raise ConfigurationError (_INVALID_HOST_MSG % ("an IP address" ,))
91
91
except ValueError :
92
92
pass
93
-
94
93
try :
95
- self .__plist = (
96
- self .__fqdn .split ("." )[1 :]
97
- if len (self .__fqdn .split ("." )) > 2
98
- else self .__fqdn .split ("." )
99
- )
94
+ split_fqdn = self .__fqdn .split ("." )
95
+ self .__plist = split_fqdn [1 :] if len (split_fqdn ) > 2 else split_fqdn
100
96
except Exception :
101
97
raise ConfigurationError (_INVALID_HOST_MSG % (fqdn ,)) from None
102
98
self .__slen = len (self .__plist )
You can’t perform that action at this time.
0 commit comments