[build-path-prefix-map-spec] 11/50: Python can be simpler

Ximin Luo infinity0 at debian.org
Fri Mar 10 15:17:19 UTC 2017


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

infinity0 pushed a commit to branch master
in repository build-path-prefix-map-spec.

commit c3ccd667e4891c42c812c237ae5b7abdcfc42317
Author: Ximin Luo <infinity0 at debian.org>
Date:   Mon Jan 23 20:15:51 2017 +0100

    Python can be simpler
---
 consume/hexsplit.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/consume/hexsplit.py b/consume/hexsplit.py
index e4bffba..f1742a0 100755
--- a/consume/hexsplit.py
+++ b/consume/hexsplit.py
@@ -11,7 +11,7 @@ def _dequote(part):
     return subs[0] + "".join(chr(int(sub[0:2], 16)) + sub[2:] for sub in subs[1:])
 
 def decode(prefix_str):
-    tuples = (part.split("=") for part in prefix_str.split(":") if part) if prefix_str else ()
+    tuples = (part.split("=") for part in prefix_str.split(":") if part)
     # Will raise if any tuple can't be destructured into a pair
     return [(_dequote(src), _dequote(dst)) for src, dst in tuples]
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/build-path-prefix-map-spec.git



More information about the Reproducible-commits mailing list