tools/upip.py: Remove unused op_basename() function.
It seems this was never used, at least not since its inclusion in this repository. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
546e213265
commit
0a217624e1
|
@ -41,10 +41,6 @@ def op_split(path):
|
|||
return (head, r[1])
|
||||
|
||||
|
||||
def op_basename(path):
|
||||
return op_split(path)[1]
|
||||
|
||||
|
||||
# Expects *file* name
|
||||
def _makedirs(name, mode=0o777):
|
||||
ret = False
|
||||
|
@ -205,7 +201,6 @@ def install_pkg(pkg_spec, install_path):
|
|||
assert len(packages) == 1
|
||||
package_url = packages[0]["url"]
|
||||
print("Installing %s %s from %s" % (pkg_spec, latest_ver, package_url))
|
||||
package_fname = op_basename(package_url)
|
||||
f1 = url_open(package_url)
|
||||
try:
|
||||
f2 = uzlib.DecompIO(f1, gzdict_sz)
|
||||
|
|
Loading…
Reference in New Issue