[Pkg-privacy-commits] [onionshare] 16/33: Update setup.py

Ximin Luo infinity0 at debian.org
Mon Oct 19 14:15:41 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository onionshare.

commit 48ba0c14ed13a3ce41c4ddd1d241ddf4564d0060
Author: jvoisin <julien.voisin at dustri.org>
Date:   Sun May 31 18:44:12 2015 +0200

    Update setup.py
    
    Don't use `+ '/' +` but `os.path.join` instead
---
 setup.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index 3f796e0..159bc59 100644
--- a/setup.py
+++ b/setup.py
@@ -29,8 +29,8 @@ except ImportError:
 def file_list(path):
     files = []
     for filename in os.listdir(path):
-        if os.path.isfile(path+'/'+filename):
-            files.append(path+'/'+filename)
+        if os.path.isfile(os.path.join(path, filename)):
+            files.append(os.path.join(path, filename))
     return files
 
 system = platform.system()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionshare.git



More information about the Pkg-privacy-commits mailing list