Skip to content

Commit

Permalink
Fixed some of the set item stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
transientlunatic committed Jan 22, 2016
1 parent 3714775 commit 6e4777d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions otter/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __getitem__(self, i):
return self.columns[i]

def __setitem__(self, i, item):
self.columns[i] = item
self.columns[i].content = item

def __repr__(self):
output = ''
Expand All @@ -74,12 +74,10 @@ def __init__(self, width, size, hclass):

def __iadd__(self, item):
self.__add__(item)
return self.content

def __add__(self, item):
self.content += item

def __set__(self, instance, item):
self.content = item
self.content += str(item)

def __repr__(self):
output = ''
Expand Down

0 comments on commit 6e4777d

Please sign in to comment.