From 419e209a618ae8c3e758ca74d9bb9ed6d3eeda7b Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Mon, 24 Sep 2018 16:18:54 +0200 Subject: Removing debug output and debug content of islocdef --- refresh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/refresh b/refresh index c5d308f..9775c6a 100755 --- a/refresh +++ b/refresh @@ -77,10 +77,10 @@ def hparse(lines, locode, year): not have a region definition and thus be written to file.en-US, whereas a holiday that is not valid for all of the US but is valid for Oregon will be written to file.en-OR. """ - islocdef = { 'XY-ZZ': 1 } + islocdef = {} for line in lines.split('\n'): if line: - #sys.stdout.write(".") + sys.stdout.write(".") jdata = json.loads(line) mylocale = unicode(jdata['locale']) mycountry = mylocale.split('-')[0] @@ -110,7 +110,6 @@ def hparse(lines, locode, year): # mycountry, myregion, mydate)) sleep(0.1) sys.stdout.flush() - print islocdef.keys() if __name__ == "__main__": myyear = "" -- cgit v1.2.3