Skip to content

Commit

Permalink
Satisfy flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperWA committed Sep 17, 2021
1 parent 8bf1c31 commit 6d28640
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions emmo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class UnknownVersion(Exception):
"""Cannot retrieve version from a package."""



def isinteractive():
"""Returns true if we are running from an interactive interpreater,
false otherwise."""
Expand Down Expand Up @@ -362,7 +361,9 @@ def _validate_installed_version(
"""
import importlib
from packaging.version import parse as parse_version, LegacyVersion, Version
from packaging.version import (
parse as parse_version, LegacyVersion, Version
)

if isinstance(min_version, str):
min_version = parse_version(min_version)
Expand Down Expand Up @@ -537,7 +538,9 @@ def recur(g):
recur(graph)
if output:
if (
not _validate_installed_version(package="rdflib", min_version="6.0.0")
not _validate_installed_version(
package="rdflib", min_version="6.0.0"
)
and (
output_format == FMAP.get("ttl", "")
or os.path.splitext(output)[1] == "ttl"
Expand All @@ -549,7 +552,8 @@ def recur(g):
"To correctly convert to Turtle format, rdflib must be version"
" 6.0.0 or greater, however, the detected rdflib version used "
f"by your Python interpreter is {__rdflib_version__!r}. For "
"more information see the 'Known issues' section of the README."
"more information see the 'Known issues' section of the "
"README."
)

graph.serialize(destination=output, format=output_format)
Expand Down

0 comments on commit 6d28640

Please sign in to comment.