diff options
author | Iwan Aucamp <aucampia@gmail.com> | 2023-04-10 12:06:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-10 12:06:21 +0200 |
commit | b2f3987240ebb9edf03fea9bd94f8760ef99f419 (patch) | |
tree | 80ec3f783e335ef2517d0de65dfe9493f96c3e52 | |
parent | 6e544f5afc365b8e0fc8ad7f98c4c27b9daa755d (diff) | |
download | rdflib-b2f3987240ebb9edf03fea9bd94f8760ef99f419.tar.gz |
refactor: eliminate unused imports (#2337)
`XMLNS` was seen as unused in `rdflib/__init__.py` but this change adds it to
`__all__` in that module so that it is not unused.
This change also removes actual unused imports in
`rdflib/namespace/__init__.py`.
-rw-r--r-- | rdflib/__init__.py | 1 | ||||
-rw-r--r-- | rdflib/namespace/__init__.py | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/rdflib/__init__.py b/rdflib/__init__.py index 0a7610f3..dc32be8e 100644 --- a/rdflib/__init__.py +++ b/rdflib/__init__.py @@ -92,6 +92,7 @@ __all__ = [ "TIME", "VANN", "VOID", + "XMLNS", "XSD", "util", "plugin", diff --git a/rdflib/namespace/__init__.py b/rdflib/namespace/__init__.py index c88fdedd..57f52f33 100644 --- a/rdflib/namespace/__init__.py +++ b/rdflib/namespace/__init__.py @@ -1,6 +1,4 @@ -import json import logging -import sys import warnings from functools import lru_cache from pathlib import Path |