PEP8 cleanups, remove unused imports

This commit is contained in:
Roberto Rosario
2012-01-17 16:40:30 -04:00
parent 93fc581ba0
commit 1a285d56dc
12 changed files with 15 additions and 27 deletions

View File

@@ -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'<ul class="undecorated_list" style="margin-left: 5px; margin-top: 3px; margin-bottom: 3px;">']