diff options
| -rwxr-xr-x | refresh | 5 | 
1 files changed, 3 insertions, 2 deletions
| @@ -119,16 +119,17 @@ def main(args):          year = [datetime.now().year]      for i in locode:          for j in year: +            i = unicode(i); j = unicode(j)              sys.stdout.write("Fetching holiday data from holidata.net... (%s, %s)" % (i, j))              sys.stdout.flush() -            lines = hfetch(unicode(i), unicode(j)) +            lines = hfetch(i, j)              print(" done.")              if lines == "":                  print("No lines returned from holidata.net for %s!", locode)                  exit(3)              sys.stdout.write("Parsing data")              sys.stdout.flush() -            hparse(lines, unicode(i), unicode(j)) +            hparse(lines, i, j)              print(" done.")  if __name__ == "__main__": | 
