-#!/usr/bin/env python
+#!/usr/bin/env python3
import contextlib
import os
from urllib import urlretrieve
-URL = 'http://unicode.org/Public/cldr/32.0.1/core.zip'
-FILENAME = 'core-32.0.1.zip'
-FILESUM = '571e33f482543f02ebd06c9b43d127a87c637c8c'
+URL = 'https://unicode.org/Public/cldr/33/core.zip'
+FILENAME = 'core-33.0.zip'
+FILESUM = 'fa3490082c086d21257153609642f54fcf788fcfda4966fe67f3f6daca0d58b9'
BLKSIZE = 131072
if not os.path.isfile(filename):
log('Local copy \'%s\' not found', filename)
return False
- h = hashlib.sha1()
+ h = hashlib.sha256()
with open(filename, 'rb') as f:
while 1:
blk = f.read(BLKSIZE)
self.assertEqual('7', fmt['e']) # monday is first day of week
fmt = dates.DateTimeFormat(d, locale='en_US')
self.assertEqual('01', fmt['ee']) # sunday is first day of week
- fmt = dates.DateTimeFormat(d, locale='bn_BD')
- self.assertEqual('03', fmt['ee']) # friday is first day of week
+ fmt = dates.DateTimeFormat(d, locale='ar_BH')
+ self.assertEqual('02', fmt['ee']) # saturday is first day of week
d = date(2007, 4, 2) # a monday
fmt = dates.DateTimeFormat(d, locale='de_DE')
self.assertEqual('1', fmt['e']) # monday is first day of week
fmt = dates.DateTimeFormat(d, locale='en_US')
self.assertEqual('02', fmt['ee']) # sunday is first day of week
- fmt = dates.DateTimeFormat(d, locale='bn_BD')
- self.assertEqual('04', fmt['ee']) # friday is first day of week
+ fmt = dates.DateTimeFormat(d, locale='ar_BH')
+ self.assertEqual('03', fmt['ee']) # saturday is first day of week
def test_local_day_of_week_standalone(self):
d = date(2007, 4, 1) # a sunday
self.assertEqual('7', fmt['c']) # monday is first day of week
fmt = dates.DateTimeFormat(d, locale='en_US')
self.assertEqual('1', fmt['c']) # sunday is first day of week
- fmt = dates.DateTimeFormat(d, locale='bn_BD')
- self.assertEqual('3', fmt['c']) # friday is first day of week
+ fmt = dates.DateTimeFormat(d, locale='ar_BH')
+ self.assertEqual('2', fmt['c']) # saturday is first day of week
d = date(2007, 4, 2) # a monday
fmt = dates.DateTimeFormat(d, locale='de_DE')
self.assertEqual('1', fmt['c']) # monday is first day of week
fmt = dates.DateTimeFormat(d, locale='en_US')
self.assertEqual('2', fmt['c']) # sunday is first day of week
- fmt = dates.DateTimeFormat(d, locale='bn_BD')
- self.assertEqual('4', fmt['c']) # friday is first day of week
+ fmt = dates.DateTimeFormat(d, locale='ar_BH')
+ self.assertEqual('3', fmt['c']) # saturday is first day of week
def test_pattern_day_of_week(self):
dt = datetime(2016, 2, 6)