Skip to content

Commit 35750de

Browse files
author
opavliuk
committed
bpo-34788 Remove redundant check
1 parent 6da269e commit 35750de

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Lib/ipaddress.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1796,9 +1796,6 @@ def _split_scope_id(ip_str):
17961796
Returns:
17971797
(addr, scope_id) tuple.
17981798
"""
1799-
if '%' not in ip_str:
1800-
return ip_str, None
1801-
18021799
addr, sep, scope_id = ip_str.partition('%')
18031800
if not sep:
18041801
scope_id = None

0 commit comments

Comments
 (0)