Commit graph

18 commits

Author SHA1 Message Date
Thomas Lauf
ad58309159 Update Copyright
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-04-19 12:41:23 +02:00
Thomas Lauf
5ab9b86e56 Set python version explicitly to python3
- Closes #259

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-02-23 21:32:39 +01:00
Thomas Lauf
42df2cb08b Update copyright years and holders
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-12-28 15:12:33 +01:00
Thomas Lauf
002a04db63 Merge same holidays from different regions
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-12-28 15:12:33 +01:00
Thomas Lauf
ff562b8a9e Simplify region filtering by setting a default value
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-12-28 15:12:33 +01:00
Thomas Lauf
bb905fd0b9 Inline variable
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-12-28 13:21:08 +01:00
Thomas Lauf
38a5afe88c Remove redundant character escape in regex
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-12-28 13:20:05 +01:00
Thomas Lauf
452cce6137 Switch to python 3
- #259

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-12-28 13:18:08 +01:00
Simon Ruderich
327219624d Convert remaining links to https:// 2018-03-16 23:11:08 +01:00
Simon Ruderich
2271bd9eea Use https:// link for opensource.org 2018-03-16 23:11:08 +01:00
Thomas Lauf
6272f1ad5d Optimize imports, indent with 4 spaces (PEP8) 2018-03-07 21:15:22 +01:00
Thomas Lauf
fdd40c484a Fix python comments 2018-03-07 21:15:22 +01:00
Thomas Lauf
3aa932eafe Fix typos 2018-01-05 10:49:17 +01:00
Paul Beckingham
6ccbf141de TI-52: The 'refresh' scripts overwrites previous years data
- Thanks to m8r.
2016-11-06 08:20:47 -05:00
Jelle van der Waa
e4e04c4ba2 TI-42: holiday calendar error when downloading nb-NO
When downloading the holiday calendar for the nb-NO locale with Python 2
the code throws an 'ascii' encode error.
2016-09-03 15:29:05 -04:00
Jelle van der Waa
5ddef40d82 Make holiday refresh script Python 3 compatible
urllib2 is renamed and reworked in Python 3, handle this change by
importing urlopen and HTTPError directly.

Resolve the print issues, by using print() everywhere.

Python3 reads bytes when reading from urlopen() therefore convert it to
a string with .decode('utf-8')
2016-09-03 14:33:26 -04:00
Paul Beckingham
a0d975462c Docs: Added 'refresh' script to update holidays 2016-05-18 09:10:00 -05:00
Paul Beckingham
63dc3b7405 Holidays: Added stubbed 'refresh' script 2016-03-26 13:33:48 -04:00