update-stats-geoip/analyser.py | 2 +- update-stats-geoip/compiler.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)
New commits: commit 191e40cf01c9117c59976dbc5c621b4e6e849037 Author: Ilmari Lauhakangas <[email protected]> AuthorDate: Thu Jul 18 19:37:30 2024 +0300 Commit: Ilmari Lauhakangas <[email protected]> CommitDate: Thu Jul 18 18:38:11 2024 +0200 update-stats-geoip: fix issues found by Ruff linter Change-Id: I0aed09d6044c85f90d70703599e025b082ced309 Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/170701 Tested-by: Ilmari Lauhakangas <[email protected]> Reviewed-by: Ilmari Lauhakangas <[email protected]> diff --git a/update-stats-geoip/analyser.py b/update-stats-geoip/analyser.py index 14ca2453..2ebfe9ef 100755 --- a/update-stats-geoip/analyser.py +++ b/update-stats-geoip/analyser.py @@ -40,7 +40,7 @@ while (datetime.date(year, month, 1) + datetime.timedelta(days=20)) < datetime.d for version in VERSIONLIST: sFile = "storage-" + sPrefix + "/" + version + "/" + str(year) + "/" + str(month).zfill(2) + "/countryhits.dat" if not os.path.exists(sFile): - continue; + continue with open(sFile, 'r') as aFile: aData[version] = pickle.load(aFile) diff --git a/update-stats-geoip/compiler.py b/update-stats-geoip/compiler.py index b74f2448..93610d6d 100755 --- a/update-stats-geoip/compiler.py +++ b/update-stats-geoip/compiler.py @@ -17,7 +17,6 @@ import datetime import GeoIP import cPickle as pickle import re -import sys import time import os.path
