Skip to content

Commit

Permalink
Update getting started doc to Python 3 (#1830)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeil authored Apr 5, 2024
1 parent c200b4e commit c85dfd4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c85dfd4

Please sign in to comment.