[doc/building/fix] encoding issue was crashing sphinx in python3
authorLaurent Peuch <cortex@worlddomination.be>
Tue, 10 Dec 2019 23:34:46 +0100
changeset 12801 1156108afab9
parent 12800 3e2e04447bf5
child 12802 f6662c603730
[doc/building/fix] encoding issue was crashing sphinx in python3
cubicweb/web/data/fullcalendar.locale.js
doc/tools/pyjsrest.py
--- a/cubicweb/web/data/fullcalendar.locale.js	Tue Dec 10 17:14:56 2019 +0100
+++ b/cubicweb/web/data/fullcalendar.locale.js	Tue Dec 10 23:34:46 2019 +0100
@@ -11,7 +11,7 @@
      dayNamesShort: ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'],
      titleFormat: {
  	month: 'MMMM yyyy', // ex : Janvier 2010
- 	week: "d[ MMMM][ yyyy]{ - d MMMM yyyy}", // ex : 10 ΓΆ€” 16 Janvier 2010,
+ 	week: "d[ MMMM][ yyyy]{ - d MMMM yyyy}", // ex : 10 au 16 Janvier 2010,
  	day: 'dddd d MMMM yyyy' // ex : Jeudi 14 Janvier 2010
      },
      columnFormat: {'month': 'dddd',
--- a/doc/tools/pyjsrest.py	Tue Dec 10 17:14:56 2019 +0100
+++ b/doc/tools/pyjsrest.py	Tue Dec 10 23:34:46 2019 +0100
@@ -89,7 +89,7 @@
             index.add(filename)
             # save rst file
             with open(osp.join(rst_dir, filename) + '.rst', 'wb') as f_rst:
-                f_rst.write(rst_content)
+                f_rst.write(rst_content.encode())
     stream = open(osp.join(rst_dir, 'index.rst'), 'w')
     stream.write('''
 Javascript API