File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,6 @@ def display_counter (self, message) :
78
78
def cache_file (self , url ) :
79
79
"""Low level interface to caching a single file.
80
80
81
- :param curl: The user is responsible for providing a curl.Curl object as the curl parameter.
82
- :type curl: curl.Curl
83
81
:param url: The URL to cache.
84
82
:type url: str
85
83
:rtype: None
@@ -117,10 +115,10 @@ def pdsc_to_pack (self, url) :
117
115
content .package .find ('name' ).get_text () + "." +
118
116
largest_version (content ) + ".pack" )
119
117
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 )
122
120
try :
123
- self .cache_file (curl , self .pdsc_to_pack (url ))
121
+ self .cache_file (self .pdsc_to_pack (url ))
124
122
except AttributeError :
125
123
stderr .write ("[ ERROR ] {} does not appear to be a conforming .pdsc file\n " .format (url ))
126
124
self .counter += 1
@@ -433,6 +431,6 @@ def cache_and_parse(self, url) :
433
431
:return: A parsed representation of the PDSC file.
434
432
:rtype: BeautifulSoup
435
433
"""
436
- self .cache_file (Curl (), url )
434
+ self .cache_file (url )
437
435
return self .pdsc_from_cache (url )
438
436
You can’t perform that action at this time.
0 commit comments