Skip to content

Commit

Permalink
Fixing list as default value
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulSchweizer committed Jun 2, 2018
1 parent 99698eb commit d629376
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ascii_canvas/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
class Item(object):
"""Defined by an arbitrary text and a position on the Canvas."""

def __init__(self, text, position=[0, 0]):
def __init__(self, text, position=None):
"""Hold a text and a position."""
self.text = text
self.position = position
self.position = position or [0, 0]

@property
def bbox(self):
Expand Down

0 comments on commit d629376

Please sign in to comment.