Skip to content

Commit

Permalink
PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
cmlccie committed Oct 31, 2018
1 parent f091b32 commit f028c06
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions webexteamssdk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,13 @@ def is_web_url(string):
"""Check to see if string is an validly-formatted web url."""
assert isinstance(string, basestring)
parsed_url = urllib.parse.urlparse(string)
return ((parsed_url.scheme.lower() == 'http' or
parsed_url.scheme.lower() == 'https') and
parsed_url.netloc)
return (
(
parsed_url.scheme.lower() == 'http'
or parsed_url.scheme.lower() == 'https'
)
and parsed_url.netloc
)


def is_local_file(string):
Expand Down

0 comments on commit f028c06

Please sign in to comment.