Fix several small, embarassing typos.
This commit is contained in:
		
							parent
							
								
									abaeb2321f
								
							
						
					
					
						commit
						da47b5bb3c
					
				
					 3 changed files with 4 additions and 4 deletions
				
			
		|  | @ -568,7 +568,7 @@ class Bookmark(ObjectBase): | |||
|             return '' | ||||
| 
 | ||||
|         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() | ||||
| 
 | ||||
|  |  | |||
|  | @ -1089,7 +1089,7 @@ class PDBUtilMixin: | |||
|                 exclude_filenames = self.config['digest_exclude_files'] | ||||
|             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: | ||||
|                 new_photo_kwargs.pop('commit') | ||||
|             if 'filepath' in new_photo_kwargs: | ||||
|  |  | |||
|  | @ -142,7 +142,7 @@ def normalize_author(authors, photodb, warning_bag=None): | |||
|     for requested_author in authors: | ||||
|         if isinstance(requested_author, objects.User): | ||||
|             if requested_author.photodb == photodb: | ||||
|                 user_ids.add(requested_author.id) | ||||
|                 users.add(requested_author) | ||||
|             else: | ||||
|                 requested_author = requested_author.username | ||||
| 
 | ||||
|  | @ -243,7 +243,7 @@ def normalize_mimetype(mimetype, warning_bag=None): | |||
| 
 | ||||
|     Returns: A set of strings. | ||||
|     ''' | ||||
|     return normalize_extensions(mimetype, warning_bag) | ||||
|     return normalize_extension(mimetype, warning_bag) | ||||
| 
 | ||||
| def normalize_offset(offset, warning_bag=None): | ||||
|     ''' | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue