[Pkg-mozext-commits] [adblock-plus] 07/17: Noissue - Use set literals in ensure_dependencies.py

David Prévot taffit at moszumanska.debian.org
Mon Jun 8 20:50:30 UTC 2015


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

taffit pushed a commit to branch master
in repository adblock-plus.

commit f9484280f066369a408e775883a46cb4f7cb1f4e
Author: Sebastian Noack <sebastian at adblockplus.org>
Date:   Mon May 4 14:42:36 2015 +0200

    Noissue - Use set literals in ensure_dependencies.py
---
 ensure_dependencies.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ensure_dependencies.py b/ensure_dependencies.py
index b6557d0..e8328c7 100755
--- a/ensure_dependencies.py
+++ b/ensure_dependencies.py
@@ -167,7 +167,7 @@ def read_deps(repodir):
 
 def safe_join(path, subpath):
   # This has been inspired by Flask's safe_join() function
-  forbidden = set([os.sep, os.altsep]) - set([posixpath.sep, None])
+  forbidden = {os.sep, os.altsep} - {posixpath.sep, None}
   if any(sep in subpath for sep in forbidden):
     raise Exception("Illegal directory separator in dependency path %s" % subpath)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list