Skip to content

Commit

Permalink
Fix flake8 issues in Field classes
Browse files Browse the repository at this point in the history
  • Loading branch information
rcutmore committed Jul 11, 2015
1 parent c7f56d6 commit d672e23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions robobrowser/forms/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __repr__(self):


class Submit(Input):

def __repr__(self):
return '<Submit name={0}, value={1}>'.format(self.name, self.value)

Expand Down Expand Up @@ -208,14 +208,14 @@ def __repr__(self):


class Checkbox(FlatOptionField, MultiValueField):

def __repr__(self):
values = ', '.join(value for value in self.value)
return '<Checkbox name={0}, value=[{1}]>'.format(self.name, values)


class Radio(FlatOptionField, MultiOptionField):

def __repr__(self):
return '<Radio name={0}, value={1}>'.format(self.name, self.value)

Expand All @@ -234,7 +234,7 @@ def __repr__(self):


class MultiSelect(NestedOptionField, MultiValueField):

def __repr__(self):
values = ', '.join(value for value in self.value)
return '<MultiSelect name={0}, value=[{1}]>'.format(self.name, values)

0 comments on commit d672e23

Please sign in to comment.