Pyzotero: a Python client for the Zotero API pyzotero.readthedocs.io
zotero

Merge pull request #245 from urschrei/shugel/push-uqllxmvynkmu

Better string formatting in doc examples

authored by urschrei.eurosky.social and committed by

GitHub a091179a c6cb5ccd

+2 -2
+1 -1
README.md
··· 21 21 # we've retrieved the latest five top-level items in our library 22 22 # we can print each item's item type and ID 23 23 for item in items: 24 - print('Item: %s | Key: %s' % (item['data']['itemType'], item['data']['key'])) 24 + print(f"Item: {item['data']['itemType']} | Key: {item['data']['key']}") 25 25 ``` 26 26 27 27 # Documentation
+1 -1
doc/index.rst
··· 37 37 # we've retrieved the latest five top-level items in our library 38 38 # we can print each item's item type and ID 39 39 for item in items: 40 - print('Item Type: %s | Key: %s' % (item['data']['itemType'], item['data']['key'])) 40 + print(f"Item: {item['data']['itemType']} | Key: {item['data']['key']}") 41 41 42 42 Refer to the :ref:`read` and :ref:`write`. 43 43