[Pkg-mozext-commits] [adblock-plus] 376/464: Public suffix list updater: removed trailing spaces from the resulting file and added newline at the end of it

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:35 UTC 2014


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

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

commit a978044454003dc16b44b3f4e8907abe2dbe7ded
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Fri Apr 26 11:11:22 2013 +0200

    Public suffix list updater: removed trailing spaces from the resulting file and added newline at the end of it
    
    --HG--
    extra : rebase_source : d08854e0d7513e9e6552f57f0351a8dc0ee64a9a
---
 publicSuffixListUpdater.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/publicSuffixListUpdater.py b/publicSuffixListUpdater.py
index ee1fcda..8210125 100644
--- a/publicSuffixListUpdater.py
+++ b/publicSuffixListUpdater.py
@@ -66,5 +66,5 @@ def updatePSL(baseDir):
 
   psl = getPublicSuffixList()
   file = open(os.path.join(baseDir, 'lib', 'publicSuffixList.js'), 'w')
-  file.write('var publicSuffixes = ' + json.dumps(psl, sort_keys=True, indent=4) + ';')
+  print >>file, 'var publicSuffixes = ' + json.dumps(psl, sort_keys=True, indent=4, separators=(',', ': ')) + ';'
   file.close()

-- 
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