Skip to content

Commit

Permalink
Fix linting issues (#3838)
Browse files Browse the repository at this point in the history
* Fix linting issues

* Small lint fix
  • Loading branch information
humitos authored and agjohnson committed Mar 24, 2018
1 parent 8a34d5e commit 7b8efe3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions readthedocs/core/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ def __call__(self, value):
valid_schemes += private_schemes
url = urlparse(value)
if (
(
url.scheme not in valid_schemes and \
'@' not in value and \
( # pylint: disable=too-many-boolean-expressions
url.scheme not in valid_schemes and
'@' not in value and
not value.startswith('lp:')
) or \
) or
(
value.startswith('/') or \
value.startswith('file://') or \
value.startswith('/') or
value.startswith('file://') or
value.startswith('.')
)
):
Expand Down

0 comments on commit 7b8efe3

Please sign in to comment.