Merge pull request #252 from pylast/fix-mutable-default-argument
Do not use a mutable data structure for argument default
This commit is contained in:
commit
aba895d56f
1 changed files with 4 additions and 1 deletions
|
@ -731,7 +731,10 @@ class _ShelfCacheBackend(object):
|
||||||
class _Request(object):
|
class _Request(object):
|
||||||
"""Representing an abstract web service operation."""
|
"""Representing an abstract web service operation."""
|
||||||
|
|
||||||
def __init__(self, network, method_name, params={}):
|
def __init__(self, network, method_name, params=None):
|
||||||
|
|
||||||
|
if params is None:
|
||||||
|
params = {}
|
||||||
|
|
||||||
self.network = network
|
self.network = network
|
||||||
self.params = {}
|
self.params = {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue