Skip to content

Commit 0a21762

Browse files
committed
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>
1 parent 546e213 commit 0a21762

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tools/upip.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ def op_split(path):
4141
return (head, r[1])
4242

4343

44-
def op_basename(path):
45-
return op_split(path)[1]
46-
47-
4844
# Expects *file* name
4945
def _makedirs(name, mode=0o777):
5046
ret = False
@@ -205,7 +201,6 @@ def install_pkg(pkg_spec, install_path):
205201
assert len(packages) == 1
206202
package_url = packages[0]["url"]
207203
print("Installing %s %s from %s" % (pkg_spec, latest_ver, package_url))
208-
package_fname = op_basename(package_url)
209204
f1 = url_open(package_url)
210205
try:
211206
f2 = uzlib.DecompIO(f1, gzdict_sz)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy