Do not use a mutable data structure for argument default

This commit is contained in:
Hugo 2018-03-15 21:52:41 +02:00
parent 77e06add28
commit 8670a87255

View file

@ -731,7 +731,10 @@ class _ShelfCacheBackend(object):
class _Request(object):
"""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.params = {}