From 1a285d56dc7e67b9671da0309a1cd8374f5c8a30 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 17 Jan 2012 16:40:30 -0400 Subject: [PATCH] PEP8 cleanups, remove unused imports --- apps/common/__init__.py | 1 - apps/common/widgets.py | 3 ++- apps/django_gpg/__init__.py | 5 +---- apps/django_gpg/api.py | 3 --- apps/django_gpg/forms.py | 3 --- apps/django_gpg/views.py | 4 +--- apps/document_signatures/__init__.py | 2 +- apps/document_signatures/managers.py | 12 ++++++------ apps/document_signatures/models.py | 2 +- apps/document_signatures/views.py | 2 +- apps/folders/models.py | 2 +- apps/folders/views.py | 3 +-- 12 files changed, 15 insertions(+), 27 deletions(-) diff --git a/apps/common/__init__.py b/apps/common/__init__.py index 9dcd406a4f..928a5d36b7 100644 --- a/apps/common/__init__.py +++ b/apps/common/__init__.py @@ -5,7 +5,6 @@ import tempfile from django.utils.translation import ugettext_lazy as _ from django.contrib.auth import models as auth_models from django.contrib.auth.management import create_superuser -from django.db.models import signals from django.dispatch import receiver from django.db.models.signals import post_syncdb diff --git a/apps/common/widgets.py b/apps/common/widgets.py index bfedfaa776..9ec76a40a6 100644 --- a/apps/common/widgets.py +++ b/apps/common/widgets.py @@ -120,7 +120,8 @@ class ScrollableCheckboxSelectMultiple(forms.widgets.CheckboxSelectMultiple): exceds the height of the div ''' def render(self, name, value, attrs=None, choices=()): - if value is None: value = [] + if value is None: + value = [] has_id = attrs and 'id' in attrs final_attrs = self.build_attrs(attrs, name=name) output = [u'