Skip to content

Commit

Permalink
Flake8 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jfinkhaeuser committed Feb 8, 2019
1 parent f9bf58f commit 84a4d53
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions prance/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def command_invoke(ctx):

from prance.util import default_validation_backend


@click.group(cls = GroupWithCommandOptions)
@click.option(
'--resolve/--no-resolve',
Expand Down
4 changes: 1 addition & 3 deletions prance/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ def stringify_keys(data):


def validation_backends():
"""
Return a list of validation backends supported by the environment.
"""
"""Return a list of validation backends supported by the environment."""
ret = []

try:
Expand Down
4 changes: 2 additions & 2 deletions prance/util/fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ def is_pathname_valid(pathname):
return False
# If a "TypeError" exception was raised, it almost certainly has the
# error message "embedded NUL character" indicating an invalid pathname.
except TypeError as exc:
except TypeError:
return False
# Null-bytes may also cause this, and they are invalid.
except ValueError as exc:
except ValueError:
return False
# If no exception was raised, all path components and hence this
# pathname itself are valid. (Praise be to the curmudgeonly python.)
Expand Down

0 comments on commit 84a4d53

Please sign in to comment.