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 <[email protected]>
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)