Author: mseidel
Date: Sun Dec 2 15:20:54 2018
New Revision: 1848003
URL: http://svn.apache.org/viewvc?rev=1848003&view=rev
Log:
Fixed link, deleted whitespace
Modified:
openoffice/devtools/aoo-stats/downloads-by-country.py
Modified: openoffice/devtools/aoo-stats/downloads-by-country.py
URL:
http://svn.apache.org/viewvc/openoffice/devtools/aoo-stats/downloads-by-country.py?rev=1848003&r1=1848002&r2=1848003&view=diff
==============================================================================
--- openoffice/devtools/aoo-stats/downloads-by-country.py (original)
+++ openoffice/devtools/aoo-stats/downloads-by-country.py Sun Dec 2 15:20:54
2018
@@ -1,5 +1,5 @@
################################################################
-#
+#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
@@ -7,16 +7,16 @@
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
-#
+#
# http://www.apache.org/licenses/LICENSE-2.0
-#
+#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-#
+#
################################################################
@@ -39,7 +39,7 @@ def getSourceForgeStats(download, start_
attempts = 0
while attempts < 3:
- try:
+ try:
conn = urllib.urlopen(url)
data = conn.read()
@@ -51,7 +51,7 @@ def getSourceForgeStats(download, start_
return ""
-# dictionary of language code to country_dict (dictionary of country name to
count)
+# dictionary of language code to country_dict (dictionary of country name to
count)
country_dict = {}
def mergeCountries(countries):
@@ -68,7 +68,7 @@ def mergeCountries(countries):
if len(sys.argv) == 0:
- print "syntax: python downloads-by-country.py <urls.lst> <start-date>
<end-date>"
+ print "syntax: python downloads-by-country.py <urls.lst> <start-date>
<end-date>"
print "where <file.list> is a list of files URL's to gather stats on, and
<start-date> and <end-date> are in YYYY-MM-DD format."
downloads = [line.strip() for line in open(sys.argv[1])]
@@ -91,7 +91,7 @@ print "<head>"
print "<title>OpenOffice Downloads by Country/Territory</title>"
print "<html>"
print "<body>"
-print "<p>This table shows downloads per <a
href='http://en.wikipedia.org/wiki/Country_code_top-level_domain'>country/territory</a>
for the period from " + sys.argv[2] + " to " + sys.argv[3] + ".</p>"
+print "<p>This table shows downloads per <a
href='https://en.wikipedia.org/wiki/Country_code_top-level_domain'>country/territory</a>
for the period from " + sys.argv[2] + " to " + sys.argv[3] + ".</p>"
print "<table border='1' cellpadding='10'>"
print "<tr>"