Skip to content

Commit 257d635

Browse files
authored
Merge pull request #3283 from bridadan/remove-curl-references
Removing remaining references to Curl from ARM pack manager
2 parents e261e30 + d7fbe2c commit 257d635

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tools/arm_pack_manager/__init__.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ def display_counter (self, message) :
7878
def cache_file (self, url) :
7979
"""Low level interface to caching a single file.
8080
81-
:param curl: The user is responsible for providing a curl.Curl object as the curl parameter.
82-
:type curl: curl.Curl
8381
:param url: The URL to cache.
8482
:type url: str
8583
:rtype: None
@@ -117,10 +115,10 @@ def pdsc_to_pack (self, url) :
117115
content.package.find('name').get_text() + "." +
118116
largest_version(content) + ".pack")
119117

120-
def cache_pdsc_and_pack (self, curl, url) :
121-
self.cache_file(curl, url)
118+
def cache_pdsc_and_pack (self, url) :
119+
self.cache_file(url)
122120
try :
123-
self.cache_file(curl, self.pdsc_to_pack(url))
121+
self.cache_file(self.pdsc_to_pack(url))
124122
except AttributeError :
125123
stderr.write("[ ERROR ] {} does not appear to be a conforming .pdsc file\n".format(url))
126124
self.counter += 1
@@ -433,6 +431,6 @@ def cache_and_parse(self, url) :
433431
:return: A parsed representation of the PDSC file.
434432
:rtype: BeautifulSoup
435433
"""
436-
self.cache_file(Curl(), url)
434+
self.cache_file(url)
437435
return self.pdsc_from_cache(url)
438436

0 commit comments

Comments
 (0)