Skip to content

Commit ff7b971

Browse files
committed
Code cleanup
1 parent c6a08a4 commit ff7b971

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mbed/mbed.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,8 +1092,7 @@ def isurl(cls, url):
10921092
@classmethod
10931093
def isinsecure(cls, url):
10941094
up = urlparse(url)
1095-
return False
1096-
# 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])
1095+
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])
10971096

10981097
@property
10991098
def lib(self):

0 commit comments

Comments
 (0)