Use of startswith()

master
Lertsenem 2015-09-14 12:57:23 +02:00
parent 863f02d137
commit 615dd5c6e8
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ if args.command == "package":
# Remove possible 'home'. The final targz should be extracted # Remove possible 'home'. The final targz should be extracted
# at 'home. # at 'home.
if filedest[0] == '~' and filedest[1] == '/': if filedest.startswith("~/"):
filedest = filedest[2:] filedest = filedest[2:]
# TODO save and restore owners and permissions # TODO save and restore owners and permissions