@@ -972,9 +972,9 @@ def ipv4(value):
972
972
elif isinstance (value , IPAddress ):
973
973
return value
974
974
else :
975
- raise Invalid ("IPv4 address must consist of either string or " " integer list" )
975
+ raise Invalid ("IPv4 address must consist of either string or integer list" )
976
976
if len (parts ) != 4 :
977
- raise Invalid ("IPv4 address must consist of four point-separated " " integers" )
977
+ raise Invalid ("IPv4 address must consist of four point-separated integers" )
978
978
parts_ = list (map (int , parts ))
979
979
if not all (0 <= x < 256 for x in parts_ ):
980
980
raise Invalid ("IPv4 address parts must be in range from 0 to 255" )
@@ -994,10 +994,10 @@ def _valid_topic(value):
994
994
raise Invalid ("MQTT topic name/filter must not be empty." )
995
995
if len (raw_value ) > 65535 :
996
996
raise Invalid (
997
- "MQTT topic name/filter must not be longer than " " 65535 encoded bytes."
997
+ "MQTT topic name/filter must not be longer than 65535 encoded bytes."
998
998
)
999
999
if "\0 " in value :
1000
- raise Invalid ("MQTT topic name/filter must not contain null " " character." )
1000
+ raise Invalid ("MQTT topic name/filter must not contain null character." )
1001
1001
return value
1002
1002
1003
1003
@@ -1009,7 +1009,7 @@ def subscribe_topic(value):
1009
1009
i < len (value ) - 1 and value [i + 1 ] != "/"
1010
1010
):
1011
1011
raise Invalid (
1012
- "Single-level wildcard must occupy an entire " " level of the filter"
1012
+ "Single-level wildcard must occupy an entire level of the filter"
1013
1013
)
1014
1014
1015
1015
index = value .find ("#" )
@@ -1021,9 +1021,7 @@ def subscribe_topic(value):
1021
1021
"character in the topic filter."
1022
1022
)
1023
1023
if len (value ) > 1 and value [index - 1 ] != "/" :
1024
- raise Invalid (
1025
- "Multi-level wildcard must be after a topic " "level separator."
1026
- )
1024
+ raise Invalid ("Multi-level wildcard must be after a topic level separator." )
1027
1025
1028
1026
return value
1029
1027
0 commit comments