diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-03-26 14:16:17 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-03-30 14:55:10 +0100 |
commit | b1126f71277b89bcedb817bbc90e8d4627917ef0 (patch) | |
tree | 29cffcd5a62e66c432c9e07a43f056f6d07ee482 | |
parent | 4924b93bac328d9753f51ad9a3d3dd2dcb370871 (diff) | |
download | mediagoblin-b1126f71277b89bcedb817bbc90e8d4627917ef0.tar.lz mediagoblin-b1126f71277b89bcedb817bbc90e8d4627917ef0.tar.xz mediagoblin-b1126f71277b89bcedb817bbc90e8d4627917ef0.zip |
A bit of pep8: Remove useless whitespace.
-rw-r--r-- | mediagoblin/db/mixin.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mediagoblin/db/mixin.py b/mediagoblin/db/mixin.py index fdf61e8d..0832c21a 100644 --- a/mediagoblin/db/mixin.py +++ b/mediagoblin/db/mixin.py @@ -83,12 +83,12 @@ class MediaEntryMixin(object): #Is already a slug assigned? Check if it is valid if self.slug: self.slug = slugify(self.slug) - + # otherwise, try to use the title. elif self.title: # assign slug based on title self.slug = slugify(self.title) - + # We don't want any empty string slugs if self.slug == u"": self.slug = None @@ -98,11 +98,11 @@ class MediaEntryMixin(object): # so just return... we're not going to force one. if not self.slug: return # giving up! - + # Otherwise, let's see if this is unique. if check_media_slug_used(self.uploader, self.slug, self.id): # It looks like it's being used... lame. - + # Can we just append the object's id to the end? if self.id: slug_with_id = u"%s-%s" % (self.slug, self.id) @@ -110,7 +110,7 @@ class MediaEntryMixin(object): slug_with_id, self.id): self.slug = slug_with_id return # success! - + # okay, still no success; # let's whack junk on there till it's unique. self.slug += '-' + uuid.uuid4().hex[:4] |