Bug 1150066 - restore ability to run prepare_tlds.py standalone. r=gps
authorGervase Markham <gerv@gerv.net>
Wed, 01 Apr 2015 08:50:00 +0200
changeset 267768 d5efa282fa7f38c9ac741819315d7f049e9cb8f9
parent 267767 bbe22e6e4e678066980d85ee5d1ebcca41c695f0
child 267769 0c771aa45448454de73152774798cf9bad406f27
push id4830
push userjlund@mozilla.com
push dateMon, 29 Jun 2015 20:18:48 +0000
treeherdermozilla-beta@4c2175bb0420 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs1150066
milestone40.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1150066 - restore ability to run prepare_tlds.py standalone. r=gps
netwerk/dns/prepare_tlds.py
--- a/netwerk/dns/prepare_tlds.py
+++ b/netwerk/dns/prepare_tlds.py
@@ -106,8 +106,11 @@ def main(output, effective_tld_filename)
     if b:
       return "true"
     return "false"
 
   for etld in getEffectiveTLDs(effective_tld_filename):
     exception = boolStr(etld.exception())
     wild = boolStr(etld.wild())
     output.write('ETLD_ENTRY("%s", %s, %s)\n' % (etld.domain(), exception, wild))
+
+if __name__ == '__main__':
+    main(sys.stdout, sys.argv[1])