Skip to content

Commit

Permalink
Fix issue #18 Empty list (mutable variable) used as a default argumen…
Browse files Browse the repository at this point in the history
…t to multiple functions
  • Loading branch information
r4m-juan committed May 23, 2022
1 parent 4e2a8af commit e9afa78
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# VERSION.py - MAINTAINER's. Don't edit, if you don't know what are you doing
# ==============================================================================

VERSION = (0, 1, 3, 0)
VERSION = (0, 1, 4, 1)
RELEASE_SUFFIX = ''

VERSION_STRING = '.'.join([str(x) for x in VERSION])
Expand Down
4 changes: 2 additions & 2 deletions route4me/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ class Address(Base):
"""
REQUIRED_FIELDS = ['lat', 'lng', ]

def __init__(self, api, addresses=[]):
def __init__(self, api):
"""
Address Instance
:param api:
:param addresses:
:return:
"""
self.addresses = addresses
self.addresses = []
Base.__init__(self, api)

def get_route_id(self):
Expand Down
2 changes: 1 addition & 1 deletion route4me/address_book.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AddressBook(Base):
"""
REQUIRED_FIELDS = ('address_1', 'cached_lat', 'cached_lng',)

def __init__(self, api, addresses=[]):
def __init__(self, api):
"""
AddressBook Instance
:param api:
Expand Down
2 changes: 1 addition & 1 deletion route4me/territory.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Territory(Base):
Territory Management
"""

def __init__(self, api, addresses=[]):
def __init__(self, api):
"""
Territory Instance
:param api:
Expand Down
2 changes: 1 addition & 1 deletion route4me/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# VERSION.py - MAINTAINER's. Don't edit, if you don't know what are you doing
# ==============================================================================

VERSION = (0, 1, 3, 0)
VERSION = (0, 1, 4, 1)
RELEASE_SUFFIX = ''

VERSION_STRING = '.'.join([str(x) for x in VERSION])
Expand Down

0 comments on commit e9afa78

Please sign in to comment.