mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 06:31:23 -07:00
Remove mutable default arguments.
This commit is contained in:
parent
10e2fc6f60
commit
744679601f
2 changed files with 6 additions and 2 deletions
|
@ -400,7 +400,9 @@ class RequestWithMethod(urllib2.Request):
|
|||
Originally contained in library/net_infrastructure/dnsmadeeasy
|
||||
'''
|
||||
|
||||
def __init__(self, url, method, data=None, headers={}):
|
||||
def __init__(self, url, method, data=None, headers=None):
|
||||
if headers is None:
|
||||
headers = {}
|
||||
self._method = method
|
||||
urllib2.Request.__init__(self, url, data, headers)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue