Localizer: support python3 and polib 1.2.0
Fix po_import behavior in Python 2. Newer versions of polib accept only unicode strings in the `pofile` function (because they check if they start by the decoded version of the BOM). I changed the `data` that is passed to `pofile` to be a unicode string in Python 2 too. This seems to work locally in my old version of polib, so that at least the old behavior should be kept the same. Co-authored-by: Carlos Ramos Carreño <carlos.ramos@nexedi.com> Co-authored-by: Jérome Perrin <jerome@nexedi.com>
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
passed |
#695994
external
|
ERP5.CodingStyleTest-Master |
02:01:15
|
||||||
passed |
#694496
external
|
ERP5.CodingStyleTest-TestRunner1 |
00:58:10
|
||||||
failed |
#695990
external
|
ERP5.PerformanceTest-Master |
00:45:52
|
||||||
failed |
#694211
external
|
ERP5.PerformanceTest-TestRunner1 |
00:40:40
|
||||||
failed |
#695984
external
|
ERP5.UnitTest-Master |
03:51:45
|
||||||
passed |
#695041
external
|
ERP5.UnitTest-TestRunner1 |
02:43:02
|
||||||
passed |
#696077
external
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:43:14
|
||||||
passed |
#696063
external
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:17:24
|
||||||
failed |
#695995
external
|
Wendelin.UnitTest-Master |
02:03:05
|
||||||
passed |
#695004
external
retried
|
ERP5.CodingStyleTest-Master |
01:20:28
|
||||||
passed |
#695520
external
retried
|
ERP5.CodingStyleTest-Master |
11:43:41
|
||||||
passed |
#695450
external
retried
|
ERP5.CodingStyleTest-Master |
01:16:14
|
||||||
passed |
#694959
external
retried
|
ERP5.CodingStyleTest-Master |
01:03:50
|
||||||
failed |
#695049
external
retried
|
ERP5.PerformanceTest-Master |
00:40:37
|
||||||
failed |
#694963
external
retried
|
ERP5.PerformanceTest-Master |
00:40:09
|
||||||
failed |
#695533
external
retried
|
ERP5.PerformanceTest-Master |
04:05:09
|
||||||
failed |
#695486
external
retried
|
ERP5.PerformanceTest-Master |
00:40:35
|
||||||
failed |
#694960
external
retried
|
ERP5.UnitTest-Master |
02:20:30
|
||||||
failed |
#695463
external
retried
|
ERP5.UnitTest-Master |
02:42:56
|
||||||
failed |
#695524
external
retried
|
ERP5.UnitTest-Master |
11:54:07
|
||||||
failed |
#695055
external
retried
|
ERP5.UnitTest-Master |
02:14:00
|
||||||
passed |
#694807
external
retried
|
ERP5.UnitTest-TestRunner1 |
01:40:35
|
||||||
passed |
#694881
external
retried
|
ERP5.UnitTest-TestRunner1 |
02:06:45
|
||||||
passed |
#695641
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:15:10
|
||||||
passed |
#694985
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:24:49
|
||||||
passed |
#695033
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:19:55
|
||||||
passed |
#695083
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:18:58
|
||||||
passed |
#695142
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
02:49:56
|
||||||
passed |
#695233
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:15:37
|
||||||
passed |
#695266
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:15:00
|
||||||
passed |
#695349
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:17:24
|
||||||
passed |
#695387
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:16:37
|
||||||
passed |
#695477
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:21:52
|
||||||
passed |
#695523
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
03:19:29
|
||||||
passed |
#695626
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:15:57
|
||||||
passed |
#695654
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:17:02
|
||||||
passed |
#695702
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:15:13
|
||||||
passed |
#695714
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:17:32
|
||||||
passed |
#696038
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:38:49
|
||||||
passed |
#695155
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
02:09:16
|
||||||
passed |
#695782
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:46:43
|
||||||
passed |
#695096
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:17:08
|
||||||
passed |
#695495
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:43:53
|
||||||
passed |
#695032
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:24:14
|
||||||
passed |
#695806
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:16:17
|
||||||
passed |
#696013
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:28:55
|
||||||
passed |
#695375
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:22:14
|
||||||
passed |
#695768
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:29:22
|
||||||
passed |
#695248
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:32:06
|
||||||
passed |
#694973
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:19:19
|
||||||
passed |
#695561
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
05:42:01
|
||||||
passed |
#695823
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:15:59
|
||||||
passed |
#695849
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:15:24
|
||||||
passed |
#695690
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:27:08
|
||||||
passed |
#695862
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:14:43
|
||||||
passed |
#695279
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:28:10
|
||||||
passed |
#695295
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:17:15
|
||||||
passed |
#695309
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:21:46
|
||||||
passed |
#695329
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:16:39
|
||||||
passed |
#695005
external
retried
|
Wendelin.UnitTest-Master |
00:50:58
|
||||||
passed |
#695465
external
retried
|
Wendelin.UnitTest-Master |
00:49:41
|
||||||
passed |
#695541
external
retried
|
Wendelin.UnitTest-Master |
08:34:41
|
||||||
passed |
#694964
external
retried
|
Wendelin.UnitTest-Master |
00:51:07
|
||||||