Skip to content

Commit c603587

Browse files
authored
Merge pull request #412 from zachvalenta/patch-1
make double quotes usage consistent in Python code
2 parents 277d653 + 415f80c commit c603587

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ You can find both on [your Algolia account](https://www.algolia.com/api-keys).
6767
```python
6868
from algoliasearch import algoliasearch
6969

70-
client = algoliasearch.Client("YourApplicationID", 'YourAPIKey')
71-
index = client.init_index('your_index_name')
70+
client = algoliasearch.Client("YourApplicationID", "YourAPIKey")
71+
index = client.init_index("your_index_name")
7272
```
7373

7474
## Push data
7575

7676
Without any prior configuration, you can start indexing [500 contacts](https://github.com/algolia/datasets/blob/master/contacts/contacts.json) in the ```contacts``` index using the following code:
7777
```python
7878
index = client.init_index("contacts")
79-
batch = json.load(open('contacts.json'))
79+
batch = json.load(open("contacts.json"))
8080
index.add_objects(batch)
8181
```
8282

0 commit comments

Comments
 (0)