Skip to content

Commit 5205c87

Browse files
committed
Fix isinsecure() ambiguity
1 parent 1bc1628 commit 5205c87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed/mbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ def isurl(cls, url):
10971097
@classmethod
10981098
def isinsecure(cls, url):
10991099
up = urlparse(url)
1100-
return not up or (up.scheme and up.scheme not in ['http', 'https', 'ssh', 'git']) or (up.port and int(up.port) not in [22, 80, 443])
1100+
return (not up) or (up.scheme and up.scheme not in ['http', 'https', 'ssh', 'git']) or (up.port and int(up.port) not in [22, 80, 443])
11011101

11021102
@property
11031103
def lib(self):

0 commit comments

Comments
 (0)