[Pkg-mozext-commits] [mozilla-devscripts] 03/12: xpi-repack: Replace built-in functions by list comprehensions.
Benjamin Drung
bdrung at moszumanska.debian.org
Mon Mar 10 23:36:47 UTC 2014
This is an automated email from the git hooks/post-receive script.
bdrung pushed a commit to branch master
in repository mozilla-devscripts.
commit bf2f52698d2fae3a1cb642d5ba300860e1487449
Author: Benjamin Drung <bdrung at debian.org>
Date: Mon Mar 10 23:27:54 2014 +0100
xpi-repack: Replace built-in functions by list comprehensions.
---
xpi-repack | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xpi-repack b/xpi-repack
index e7408c7..2f7fea5 100755
--- a/xpi-repack
+++ b/xpi-repack
@@ -71,8 +71,8 @@ def get_source_package_name(script_name):
"source package or provide a source package name.\n")
sys.exit(1)
lines = open("debian/control").readlines()
- package_lines = filter(lambda x: x.find("Source:") >= 0, lines)
- packages = map(lambda x: x[x.find(":")+1:].strip(), package_lines)
+ package_lines = [x for x in lines if x.find("Source:") >= 0]
+ packages = [x[x.find(":")+1:].strip() for x in package_lines]
return packages[0]
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/mozilla-devscripts.git
More information about the Pkg-mozext-commits
mailing list