git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/refresh
diff options
context:
space:
mode:
authorH. P. <harald.p.@xmart.de> 2018-09-24 16:18:54 +0200
committerH. P. <harald.p.@xmart.de> 2018-09-24 16:18:54 +0200
commit419e209a618ae8c3e758ca74d9bb9ed6d3eeda7b (patch)
treed05f14fd821c123a2c1c4449585ec4cb69563310 /refresh
parent1d1d3a5add792024377206672d97af164a7f207d (diff)
downloadtimewarrior-holidays-419e209a618ae8c3e758ca74d9bb9ed6d3eeda7b.tar.bz2
Removing debug output and debug content of islocdef
Diffstat (limited to 'refresh')
-rwxr-xr-xrefresh5
1 files 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 = ""