mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Remove apply()
This commit is contained in:
parent
fe55464f39
commit
d91085598f
56 changed files with 179 additions and 285 deletions
|
@ -95,7 +95,7 @@ def convert_path (pathname):
|
|||
paths.remove('.')
|
||||
if not paths:
|
||||
return os.curdir
|
||||
return apply(os.path.join, paths)
|
||||
return os.path.join(*paths)
|
||||
|
||||
# convert_path ()
|
||||
|
||||
|
@ -295,7 +295,7 @@ def execute (func, args, msg=None, verbose=0, dry_run=0):
|
|||
|
||||
log.info(msg)
|
||||
if not dry_run:
|
||||
apply(func, args)
|
||||
func(*args)
|
||||
|
||||
|
||||
def strtobool (val):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue