From 60e750af0118fadcd3cab59ebbdcc71ff0edf3f8 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Wed, 23 Mar 2022 19:15:55 +0100 Subject: [PATCH] Fix some typos Signed-off-by: Stefan Weil --- demetsiiify/__init__.py | 2 +- demetsiiify/imgfetch.py | 2 +- demetsiiify/mets.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/demetsiiify/__init__.py b/demetsiiify/__init__.py index d595072..5545e40 100644 --- a/demetsiiify/__init__.py +++ b/demetsiiify/__init__.py @@ -56,7 +56,7 @@ def create_app(): def make_redis(): redis = StrictRedis.from_url('redis://redis:6379/0') - # For our SSE endoint, we want to be notified of all changes to hashmaps + # For our SSE endpoint, we want to be notified of all changes to hashmaps # with a given key (i.e. when a job is updated) redis.config_set('notify-keyspace-events', 'Kh') return redis diff --git a/demetsiiify/imgfetch.py b/demetsiiify/imgfetch.py index 174dabc..9760987 100644 --- a/demetsiiify/imgfetch.py +++ b/demetsiiify/imgfetch.py @@ -25,7 +25,7 @@ class ImageDownloadError(Exception): - """An error that occured while downloading an image.""" + """An error that occurred while downloading an image.""" def __init__(self, message: str, debug_info: dict = None) -> None: super().__init__(message) diff --git a/demetsiiify/mets.py b/demetsiiify/mets.py index d5c73b3..2f8cbf3 100644 --- a/demetsiiify/mets.py +++ b/demetsiiify/mets.py @@ -62,7 +62,7 @@ class TocEntry: class MetsParseError(Exception): - """An exception that occured while parsing a METS file.""" + """An exception that occurred while parsing a METS file.""" def __init__(self, message: str, debug_info: dict = None) -> None: super().__init__(message) @@ -92,7 +92,7 @@ def __init__(self, mets_tree: etree.ElementTree, url: str = None, """Parse a METS document. This will read the metadata, table of contents and general - file informations. The width and heights of the images is + file information. The width and heights of the images is not determined. """ self.url = url