You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by mg...@apache.org on 2022/12/20 19:29:27 UTC
[avro] branch master updated: docs: use python 3 print syntax (#2033)
This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/master by this push:
new c8ca3afbb docs: use python 3 print syntax (#2033)
c8ca3afbb is described below
commit c8ca3afbb02dcb6399f56d25139d9a67bdd973ca
Author: João Saraceni <jp...@id.uff.br>
AuthorDate: Tue Dec 20 16:29:19 2022 -0300
docs: use python 3 print syntax (#2033)
---
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 da67be791..f11fcc051 100644
--- a/doc/content/en/docs/++version++/Getting started (Python)/_index.md
+++ b/doc/content/en/docs/++version++/Getting started (Python)/_index.md
@@ -95,7 +95,7 @@ writer.close()
reader = DataFileReader(open("users.avro", "rb"), DatumReader())
for user in reader:
- print user
+ print(user)
reader.close()
```
@@ -141,7 +141,7 @@ We open the file again, this time for reading back from disk. We use a DataFileR
```python
for user in reader:
- print user
+ print(user)
```
The DataFileReader is an iterator that returns dicts corresponding to the serialized items.