summaryrefslogtreecommitdiff
path: root/rdflib/tools
diff options
context:
space:
mode:
authorIwan Aucamp <aucampia@gmail.com>2022-01-02 00:31:27 +0100
committerIwan Aucamp <aucampia@gmail.com>2022-01-02 00:31:27 +0100
commit41bf50e224afb6f1a2877d114561801d59358a43 (patch)
tree0374cd18e755ca1250fc928c42cb9299daf82d2f /rdflib/tools
parent43d86224382d64fba2e5e17acedea1704631e097 (diff)
downloadrdflib-41bf50e224afb6f1a2877d114561801d59358a43.tar.gz
Black rdflib except for rdflib/namespace/_GEO.py
Probably we should ingore generated namespaces in black or format them on generation, or mark them for ignoring by formatter. Will look at that later.
Diffstat (limited to 'rdflib/tools')
-rw-r--r--rdflib/tools/defined_namespace_creator.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/rdflib/tools/defined_namespace_creator.py b/rdflib/tools/defined_namespace_creator.py
index f3eeaecf..c2afc8b8 100644
--- a/rdflib/tools/defined_namespace_creator.py
+++ b/rdflib/tools/defined_namespace_creator.py
@@ -93,7 +93,7 @@ def get_target_namespace_elements(g, target_namespace):
elements_strs = []
for e in elements:
- desc = e[1].replace('\n', ' ')
+ desc = e[1].replace("\n", " ")
elements_strs.append(
f" {e[0].replace(args.target_namespace, '')}: URIRef # {desc}\n"
)
@@ -148,14 +148,14 @@ if __name__ == "__main__":
)
parser.add_argument(
- '-f',
+ "-f",
"--fail",
- dest='fail',
- action='store_true',
+ dest="fail",
+ action="store_true",
help="Whether (true) or not (false) to mimic ClosedNamespace and fail on "
"non-element use",
)
- parser.add_argument('--no-fail', dest='fail', action='store_false')
+ parser.add_argument("--no-fail", dest="fail", action="store_false")
parser.set_defaults(feature=False)
args = parser.parse_args()