CRAN lister: make shelling out decoding compatible with Python 3.5
This commit is contained in:
parent
974f80f966
commit
7dfd811e16
1 changed files with 2 additions and 3 deletions
|
@ -26,9 +26,8 @@ def read_cran_data() -> List[Mapping[str, str]]:
|
|||
filepath = pkg_resources.resource_filename('swh.lister.cran',
|
||||
'list_all_packages.R')
|
||||
logger.debug('script list-all-packages.R path: %s', filepath)
|
||||
response = subprocess.run(
|
||||
filepath, stdout=subprocess.PIPE, shell=False, encoding='utf-8')
|
||||
return json.loads(response.stdout)
|
||||
response = subprocess.run(filepath, stdout=subprocess.PIPE, shell=False)
|
||||
return json.loads(response.stdout.decode('utf-8'))
|
||||
|
||||
|
||||
def compute_package_url(repo: Mapping[str, str]) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue