This is an automated email from the ASF dual-hosted git repository.
opwvhk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/main by this push:
new c85dfd4a1 Update getting started doc to Python 3 (#1830)
c85dfd4a1 is described below
commit c85dfd4a1b7ced99b8cb67c2a54e186854aa85b4
Author: Christoph Deil <[email protected]>
AuthorDate: Fri Apr 5 10:23:50 2024 +0200
Update getting started doc to Python 3 (#1830)
---
doc/content/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 f11fcc051..44e3a8f37 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.