MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / urlsafe_b64decode

Function urlsafe_b64decode

src/packagedcode/pypi.py:1309–1317  ·  view source on GitHub ↗

urlsafe_b64decode without padding SPDX-License-Identifier: MIT Copyright (c) 2012-2014 Daniel Holth and contributors. From: https://github.com/pypa/wheel/blob/66208910ab51f4008b034ef4833acfdc920f7606/src/wheel/util.py#L23

(data)

Source from the content-addressed store, hash-verified

1307
1308
1309def urlsafe_b64decode(data):
1310 """
1311 urlsafe_b64decode without padding
1312 SPDX-License-Identifier: MIT
1313 Copyright (c) 2012-2014 Daniel Holth <dholth@fastmail.fm> and contributors.
1314 From: https://github.com/pypa/wheel/blob/66208910ab51f4008b034ef4833acfdc920f7606/src/wheel/util.py#L23
1315 """
1316 pad = b'=' * (4 - (len(data) & 3))
1317 return base64.urlsafe_b64decode(data.encode('ASCII') + pad)
1318
1319
1320def get_file_references(dist):

Callers 1

get_file_referencesFunction · 0.70

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected