From 615dd5c6e8f7893b8ebadcc69f13ecb28d15bae1 Mon Sep 17 00:00:00 2001 From: Lertsenem Date: Mon, 14 Sep 2015 12:57:23 +0200 Subject: [PATCH] Use of startswith() --- persoconf/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/persoconf/main.py b/persoconf/main.py index bf54746..d214a16 100755 --- a/persoconf/main.py +++ b/persoconf/main.py @@ -423,7 +423,7 @@ if args.command == "package": # Remove possible 'home'. The final targz should be extracted # at 'home. - if filedest[0] == '~' and filedest[1] == '/': + if filedest.startswith("~/"): filedest = filedest[2:] # TODO save and restore owners and permissions