diff --git a/docs/conf.py b/docs/conf.py index 05a702883..3b4e7b6e2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# # rdflib documentation build configuration file, created by # sphinx-quickstart on Fri May 15 15:03:54 2009. # diff --git a/rdflib/compare.py b/rdflib/compare.py index 90668c1c3..6384269ad 100644 --- a/rdflib/compare.py +++ b/rdflib/compare.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ A collection of utilities for canonicalizing and inspecting graphs. diff --git a/rdflib/extras/__init__.py b/rdflib/extras/__init__.py index 40a96afc6..e69de29bb 100644 --- a/rdflib/extras/__init__.py +++ b/rdflib/extras/__init__.py @@ -1 +0,0 @@ -# -*- coding: utf-8 -*- diff --git a/rdflib/extras/describer.py b/rdflib/extras/describer.py index 023970555..7b987ace9 100644 --- a/rdflib/extras/describer.py +++ b/rdflib/extras/describer.py @@ -1,6 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- - __doc__ = """ A Describer is a stateful utility for creating RDF statements in a semi-declarative manner. It has methods for creating literal values, rel and diff --git a/rdflib/extras/infixowl.py b/rdflib/extras/infixowl.py index 8e74e4ba3..bdd445734 100644 --- a/rdflib/extras/infixowl.py +++ b/rdflib/extras/infixowl.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - __doc__ = """RDFLib Python binding for OWL Abstract Syntax OWL Constructor DL Syntax Manchester OWL Syntax Example diff --git a/rdflib/plugins/serializers/jsonld.py b/rdflib/plugins/serializers/jsonld.py index e5d9b0384..caba86e03 100644 --- a/rdflib/plugins/serializers/jsonld.py +++ b/rdflib/plugins/serializers/jsonld.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ This serialiser will output an RDF Graph as a JSON-LD formatted document. See: diff --git a/rdflib/plugins/shared/jsonld/context.py b/rdflib/plugins/shared/jsonld/context.py index e136d7649..af5e26ed6 100644 --- a/rdflib/plugins/shared/jsonld/context.py +++ b/rdflib/plugins/shared/jsonld/context.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Implementation of the JSON-LD Context structure. See: diff --git a/rdflib/plugins/shared/jsonld/errors.py b/rdflib/plugins/shared/jsonld/errors.py index 6aa11c289..6ba6e4b9a 100644 --- a/rdflib/plugins/shared/jsonld/errors.py +++ b/rdflib/plugins/shared/jsonld/errors.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # https://github.com/RDFLib/rdflib-jsonld/blob/feature/json-ld-1.1/rdflib_jsonld/errors.py class JSONLDException(ValueError): # noqa: N818 pass diff --git a/rdflib/plugins/shared/jsonld/keys.py b/rdflib/plugins/shared/jsonld/keys.py index 8e2ad4082..6b998ad41 100644 --- a/rdflib/plugins/shared/jsonld/keys.py +++ b/rdflib/plugins/shared/jsonld/keys.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # https://github.com/RDFLib/rdflib-jsonld/blob/feature/json-ld-1.1/rdflib_jsonld/keys.py BASE = "@base" CONTAINER = "@container" diff --git a/rdflib/plugins/shared/jsonld/util.py b/rdflib/plugins/shared/jsonld/util.py index 486f8b077..ae2ceb3b9 100644 --- a/rdflib/plugins/shared/jsonld/util.py +++ b/rdflib/plugins/shared/jsonld/util.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # https://github.com/RDFLib/rdflib-jsonld/blob/feature/json-ld-1.1/rdflib_jsonld/util.py from __future__ import annotations diff --git a/rdflib/plugins/stores/sparqlstore.py b/rdflib/plugins/stores/sparqlstore.py index aec6bade4..89475d7de 100644 --- a/rdflib/plugins/stores/sparqlstore.py +++ b/rdflib/plugins/stores/sparqlstore.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# """ This is an RDFLib store around Ivan Herman et al.'s SPARQL service wrapper. This was first done in layer-cake, and then ported to RDFLib diff --git a/rdflib/tools/rdfpipe.py b/rdflib/tools/rdfpipe.py index f93138423..cba728a42 100644 --- a/rdflib/tools/rdfpipe.py +++ b/rdflib/tools/rdfpipe.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: UTF-8 -*- """ A commandline tool for parsing RDF in different formats and serializing the resulting graph to a chosen format. diff --git a/test/jsonld/runner.py b/test/jsonld/runner.py index 77a80ed4f..e07dc46b6 100644 --- a/test/jsonld/runner.py +++ b/test/jsonld/runner.py @@ -1,4 +1,3 @@ -# -*- coding: UTF-8 -*- import json from rdflib import BNode, ConjunctiveGraph diff --git a/test/jsonld/test_api.py b/test/jsonld/test_api.py index 5beab1fd9..eb8a0cf80 100644 --- a/test/jsonld/test_api.py +++ b/test/jsonld/test_api.py @@ -1,4 +1,3 @@ -# -*- coding: UTF-8 -*- from rdflib import Graph, Literal, URIRef diff --git a/test/jsonld/test_compaction.py b/test/jsonld/test_compaction.py index f6cdae14b..c565c7e0e 100644 --- a/test/jsonld/test_compaction.py +++ b/test/jsonld/test_compaction.py @@ -1,4 +1,3 @@ -# -*- coding: UTF-8 -*- from __future__ import annotations import itertools diff --git a/test/jsonld/test_named_graphs.py b/test/jsonld/test_named_graphs.py index 1d1bd6265..5705a847a 100644 --- a/test/jsonld/test_named_graphs.py +++ b/test/jsonld/test_named_graphs.py @@ -1,4 +1,3 @@ -# -*- coding: UTF-8 -*- from rdflib import ConjunctiveGraph, Dataset, Graph, URIRef data = """ diff --git a/test/jsonld/test_nested_arrays.py b/test/jsonld/test_nested_arrays.py index 0d99efab2..43745b419 100644 --- a/test/jsonld/test_nested_arrays.py +++ b/test/jsonld/test_nested_arrays.py @@ -1,5 +1,3 @@ -# -*- coding: UTF-8 -*- - from test.utils.namespace import EGDC from rdflib import Graph, Literal diff --git a/test/test_dataset/test_dataset.py b/test/test_dataset/test_dataset.py index ca9730997..a6e005c08 100644 --- a/test/test_dataset/test_dataset.py +++ b/test/test_dataset/test_dataset.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import os import shutil import tempfile diff --git a/test/test_graph/test_graph.py b/test/test_graph/test_graph.py index 185412f6e..7ba454d29 100644 --- a/test/test_graph/test_graph.py +++ b/test/test_graph/test_graph.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import logging import os from pathlib import Path diff --git a/test/test_issues/test_issue190.py b/test/test_issues/test_issue190.py index 5efe3f9dd..018cf36d9 100644 --- a/test/test_issues/test_issue190.py +++ b/test/test_issues/test_issue190.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import textwrap import pytest diff --git a/test/test_literal/test_hex_binary.py b/test/test_literal/test_hex_binary.py index cb36798d1..2ade8beda 100644 --- a/test/test_literal/test_hex_binary.py +++ b/test/test_literal/test_hex_binary.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import binascii from rdflib import XSD, Literal diff --git a/test/test_misc/test_b64_binary.py b/test/test_misc/test_b64_binary.py index d7e0832de..27a1ad19a 100644 --- a/test/test_misc/test_b64_binary.py +++ b/test/test_misc/test_b64_binary.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import base64 from rdflib import XSD, Literal diff --git a/test/test_misc/test_bnode_ncname.py b/test/test_misc/test_bnode_ncname.py index b1279b521..3375c658e 100644 --- a/test/test_misc/test_bnode_ncname.py +++ b/test/test_misc/test_bnode_ncname.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import re from uuid import uuid4 diff --git a/test/test_serializers/test_prettyxml.py b/test/test_serializers/test_prettyxml.py index a7e96e9e7..6c798e825 100644 --- a/test/test_serializers/test_prettyxml.py +++ b/test/test_serializers/test_prettyxml.py @@ -1,4 +1,3 @@ -# -*- coding: UTF-8 -*- from io import BytesIO from rdflib.graph import ConjunctiveGraph diff --git a/test/test_store/test_store_auditable.py b/test/test_store/test_store_auditable.py index 331b3c0bd..b9d152dec 100644 --- a/test/test_store/test_store_auditable.py +++ b/test/test_store/test_store_auditable.py @@ -1,4 +1,3 @@ -# -*- coding=utf8 -*- from test.utils.namespace import EGDO import pytest diff --git a/test/test_store/test_store_sparqlupdatestore.py b/test/test_store/test_store_sparqlupdatestore.py index 0016109d0..1843a0b86 100644 --- a/test/test_store/test_store_sparqlupdatestore.py +++ b/test/test_store/test_store_sparqlupdatestore.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import re from test.data import BOB, CHEESE, HATES, LIKES, MICHEL, PIZZA, TAREK from urllib.request import urlopen diff --git a/test/test_util.py b/test/test_util.py index 0759e38a4..266df9a42 100644 --- a/test/test_util.py +++ b/test/test_util.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import logging import time from contextlib import ExitStack