diff options
Diffstat (limited to 'refresh')
-rwxr-xr-x | refresh | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 = "" |