Fix several small, embarassing typos.

This commit is contained in:
voussoir 2018-03-23 01:18:43 -07:00
parent abaeb2321f
commit da47b5bb3c
3 changed files with 4 additions and 4 deletions

View file

@ -568,7 +568,7 @@ class Bookmark(ObjectBase):
return '' return ''
if not isinstance(url, str): if not isinstance(url, str):
raise TypeError('URL must be string, not %s' % type(title)) raise TypeError('URL must be string, not %s' % type(url))
url = url.strip() url = url.strip()

View file

@ -1089,7 +1089,7 @@ class PDBUtilMixin:
exclude_filenames = self.config['digest_exclude_files'] exclude_filenames = self.config['digest_exclude_files']
return exclude_filenames return exclude_filenames
def _normalize_new_photo_kwargs(new_photo_kargs): def _normalize_new_photo_kwargs(new_photo_kwargs):
if 'commit' in new_photo_kwargs: if 'commit' in new_photo_kwargs:
new_photo_kwargs.pop('commit') new_photo_kwargs.pop('commit')
if 'filepath' in new_photo_kwargs: if 'filepath' in new_photo_kwargs:

View file

@ -142,7 +142,7 @@ def normalize_author(authors, photodb, warning_bag=None):
for requested_author in authors: for requested_author in authors:
if isinstance(requested_author, objects.User): if isinstance(requested_author, objects.User):
if requested_author.photodb == photodb: if requested_author.photodb == photodb:
user_ids.add(requested_author.id) users.add(requested_author)
else: else:
requested_author = requested_author.username requested_author = requested_author.username
@ -243,7 +243,7 @@ def normalize_mimetype(mimetype, warning_bag=None):
Returns: A set of strings. Returns: A set of strings.
''' '''
return normalize_extensions(mimetype, warning_bag) return normalize_extension(mimetype, warning_bag)
def normalize_offset(offset, warning_bag=None): def normalize_offset(offset, warning_bag=None):
''' '''