From c85dfd4a1b7ced99b8cb67c2a54e186854aa85b4 Mon Sep 17 00:00:00 2001 From: Christoph Deil Date: Fri, 5 Apr 2024 10:23:50 +0200 Subject: [PATCH] Update getting started doc to Python 3 (#1830) --- .../en/docs/++version++/Getting started (Python)/_index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/content/en/docs/++version++/Getting started (Python)/_index.md b/doc/content/en/docs/++version++/Getting started (Python)/_index.md index f11fcc05134..44e3a8f37fd 100644 --- a/doc/content/en/docs/++version++/Getting started (Python)/_index.md +++ b/doc/content/en/docs/++version++/Getting started (Python)/_index.md @@ -102,8 +102,8 @@ reader.close() This outputs: ```json -{u'favorite_color': None, u'favorite_number': 256, u'name': u'Alyssa'} -{u'favorite_color': u'red', u'favorite_number': 7, u'name': u'Ben'} +{'favorite_color': None, 'favorite_number': 256, 'name': 'Alyssa'} +{'favorite_color': 'red', 'favorite_number': 7, 'name': 'Ben'} ``` Do make sure that you open your files in binary mode (i.e. using the modes wb or rb respectively). Otherwise you might generate corrupt files due to automatic replacement of newline characters with the platform-specific representations.