Skip to content

Commit

Permalink
Merge pull request #112 from timgates42/bugfix_typos
Browse files Browse the repository at this point in the history
docs: Fix a few typos
  • Loading branch information
lkiesow committed Dec 22, 2023
2 parents ef236ae + 4453153 commit ee433b8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
28 changes: 14 additions & 14 deletions feedgen/ext/dc.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def dc_contributor(self, contributor=None, replace=False):
http://dublincore.org/documents/dcmi-terms/#elements-contributor
:param contributor: Contributor or list of contributors.
:param replace: Replace alredy set contributors (deault: False).
:param replace: Replace already set contributors (default: False).
:returns: List of contributors.
'''
if contributor is not None:
Expand Down Expand Up @@ -139,7 +139,7 @@ def dc_creator(self, creator=None, replace=False):
http://dublincore.org/documents/dcmi-terms/#elements-creator
:param creator: Creator or list of creators.
:param replace: Replace alredy set creators (deault: False).
:param replace: Replace already set creators (default: False).
:returns: List of creators.
'''
if creator is not None:
Expand All @@ -158,7 +158,7 @@ def dc_date(self, date=None, replace=True):
http://dublincore.org/documents/dcmi-terms/#elements-date
:param date: Date or list of dates.
:param replace: Replace alredy set dates (deault: True).
:param replace: Replace already set dates (default: True).
:returns: List of dates.
'''
if date is not None:
Expand All @@ -176,7 +176,7 @@ def dc_description(self, description=None, replace=True):
http://dublincore.org/documents/dcmi-terms/#elements-description
:param description: Description or list of descriptions.
:param replace: Replace alredy set descriptions (deault: True).
:param replace: Replace already set descriptions (default: True).
:returns: List of descriptions.
'''
if description is not None:
Expand All @@ -195,7 +195,7 @@ def dc_format(self, format=None, replace=True):
http://dublincore.org/documents/dcmi-terms/#elements-format
:param format: Format of the resource or list of formats.
:param replace: Replace alredy set format (deault: True).
:param replace: Replace already set format (default: True).
:returns: Format of the resource.
'''
if format is not None:
Expand All @@ -214,7 +214,7 @@ def dc_identifier(self, identifier=None, replace=True):
http://dublincore.org/documents/dcmi-terms/#elements-identifier
:param identifier: Identifier of the resource or list of identifiers.
:param replace: Replace alredy set identifier (deault: True).
:param replace: Replace already set identifier (default: True).
:returns: Identifiers of the resource.
'''
if identifier is not None:
Expand All @@ -233,7 +233,7 @@ def dc_language(self, language=None, replace=True):
http://dublincore.org/documents/dcmi-terms/#elements-language
:param language: Language or list of languages.
:param replace: Replace alredy set languages (deault: True).
:param replace: Replace already set languages (default: True).
:returns: List of languages.
'''
if language is not None:
Expand All @@ -252,7 +252,7 @@ def dc_publisher(self, publisher=None, replace=False):
http://dublincore.org/documents/dcmi-terms/#elements-publisher
:param publisher: Publisher or list of publishers.
:param replace: Replace alredy set publishers (deault: False).
:param replace: Replace already set publishers (default: False).
:returns: List of publishers.
'''
if publisher is not None:
Expand All @@ -270,7 +270,7 @@ def dc_relation(self, relation=None, replace=False):
http://dublincore.org/documents/dcmi-terms/#elements-relation
:param relation: Relation or list of relations.
:param replace: Replace alredy set relations (deault: False).
:param replace: Replace already set relations (default: False).
:returns: List of relations.
'''
if relation is not None:
Expand All @@ -289,7 +289,7 @@ def dc_rights(self, rights=None, replace=False):
http://dublincore.org/documents/dcmi-terms/#elements-rights
:param rights: Rights information or list of rights information.
:param replace: Replace alredy set rightss (deault: False).
:param replace: Replace already set rights (default: False).
:returns: List of rights information.
'''
if rights is not None:
Expand All @@ -313,7 +313,7 @@ def dc_source(self, source=None, replace=False):
http://dublincore.org/documents/dcmi-terms/#elements-source
:param source: Source or list of sources.
:param replace: Replace alredy set sources (deault: False).
:param replace: Replace already set sources (default: False).
:returns: List of sources.
'''
if source is not None:
Expand All @@ -331,7 +331,7 @@ def dc_subject(self, subject=None, replace=False):
http://dublincore.org/documents/dcmi-terms/#elements-subject
:param subject: Subject or list of subjects.
:param replace: Replace alredy set subjects (deault: False).
:param replace: Replace already set subjects (default: False).
:returns: List of subjects.
'''
if subject is not None:
Expand All @@ -349,7 +349,7 @@ def dc_title(self, title=None, replace=True):
http://dublincore.org/documents/dcmi-terms/#elements-title
:param title: Title or list of titles.
:param replace: Replace alredy set titles (deault: False).
:param replace: Replace already set titles (default: False).
:returns: List of titles.
'''
if title is not None:
Expand All @@ -368,7 +368,7 @@ def dc_type(self, type=None, replace=False):
http://dublincore.org/documents/dcmi-terms/#elements-type
:param type: Type or list of types.
:param replace: Replace alredy set types (deault: False).
:param replace: Replace already set types (default: False).
:returns: List of types.
'''
if type is not None:
Expand Down
2 changes: 1 addition & 1 deletion feedgen/ext/geo_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def geom_from_geo_interface(self, geom):
- Point
- LineString
- Polygon (if there are holes / donuts in the polygons a warning will
be generaated
be generated
Other GeoJson types will raise a ``ValueError``.
Expand Down
4 changes: 2 additions & 2 deletions feedgen/feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ def webMaster(self, webMaster=None):

def add_entry(self, feedEntry=None, order='prepend'):
'''This method will add a new entry to the feed. If the feedEntry
argument is omittet a new Entry object is created automatically. This
argument is omitted a new Entry object is created automatically. This
is the preferred way to add new entries to a feed.
:param feedEntry: FeedEntry object to add.
Expand Down Expand Up @@ -1042,7 +1042,7 @@ def add_entry(self, feedEntry=None, order='prepend'):

def add_item(self, item=None):
'''This method will add a new item to the feed. If the item argument is
omittet a new FeedEntry object is created automatically. This is just
omitted a new FeedEntry object is created automatically. This is just
another name for add_entry(...)
'''
return self.add_entry(item)
Expand Down

0 comments on commit ee433b8

Please sign in to comment.