@@ -136,7 +136,7 @@ def __getitem__(self, name):
136
136
raise KeyError ("No content named %s" % name )
137
137
138
138
def __init__ (self , url , version = '1.0.0' , xml = None , username = None , password = None ,
139
- parse_remote_metadata = False , vendor_kwargs = None , headers = None , cookies = None , auth = None ,
139
+ parse_remote_metadata = False , vendor_kwargs = None , headers = None , auth = None , cookies = None ,
140
140
timeout = 30 ):
141
141
"""Initialize.
142
142
@@ -180,7 +180,7 @@ def __init__(self, url, version='1.0.0', xml=None, username=None, password=None,
180
180
181
181
# Authentication handled by Reader
182
182
reader = WMTSCapabilitiesReader (
183
- self .version , url = self .url , headers = self .headers , cookies = self .cookies , auth = self .auth )
183
+ self .version , url = self .url , headers = self .headers , auth = self .auth , cookies = self .cookies )
184
184
if xml is not None : # read from stored xml
185
185
self ._capabilities = reader .readString (xml )
186
186
else : # read from server
@@ -888,7 +888,7 @@ class WMTSCapabilitiesReader:
888
888
"""Read and parse capabilities document into a lxml.etree infoset
889
889
"""
890
890
891
- def __init__ (self , version = '1.0.0' , url = None , un = None , pw = None , headers = None , cookies = None , auth = None ):
891
+ def __init__ (self , version = '1.0.0' , url = None , un = None , pw = None , headers = None , auth = None , cookies = None ):
892
892
"""Initialize"""
893
893
self .version = version
894
894
self ._infoset = None
0 commit comments