From 280580421b670cdd419b8c78f3032e80bc2033a0 Mon Sep 17 00:00:00 2001 From: habfast Date: Tue, 25 Feb 2014 08:18:28 +0100 Subject: [PATCH] pep8 compliance --- bitfield/forms.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bitfield/forms.py b/bitfield/forms.py index bbb9031..e4ea6e8 100644 --- a/bitfield/forms.py +++ b/bitfield/forms.py @@ -9,14 +9,14 @@ def render(self, name, value, attrs=None, choices=()): if isinstance(value, BitHandler): value = [k for k, v in value if v] elif isinstance(value, int): - real_value=[] - div=2 - for (k,v) in self.choices: + real_value = [] + div = 2 + for (k, v) in self.choices: if value % div != 0: real_value.append(k) value -= (value % div) - div*=2 - value=real_value + div *= 2 + value = real_value return super(BitFieldCheckboxSelectMultiple, self).render( name, value, attrs=attrs, choices=enumerate(choices))