From 8c8453bf7a5ed5cdb905be63e3b35e780e9b374f Mon Sep 17 00:00:00 2001 From: Zen-CODE Date: Sat, 8 Aug 2015 16:22:33 +0200 Subject: [PATCH] doc: changed key/value (either/or) to key-value syntax in storage/__init__.py --- kivy/storage/__init__.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kivy/storage/__init__.py b/kivy/storage/__init__.py index 335f96917..156f518a4 100644 --- a/kivy/storage/__init__.py +++ b/kivy/storage/__init__.py @@ -13,7 +13,7 @@ Usage ----- The idea behind the Storage module is to be able to load/store any number of -key/value pairs via an indexed key. The default model is abstract so you +key-value pairs via an indexed key. The default model is abstract so you cannot use it directly. We provide some implementations such as: - :class:`kivy.storage.dictstore.DictStore`: use a python dict as a store @@ -36,7 +36,7 @@ For example, let's use a JsonStore:: store.put('tito', name='Mathieu', org='kivy') store.put('tshirtman', name='Gabriel', age=27) - # using the same index key erases all previously added key/value pairs + # using the same index key erases all previously added key-value pairs store.put('tito', name='Mathieu', age=30) # get a value using a index key and key @@ -154,7 +154,7 @@ class AbstractStore(EventDispatcher): key=key, callback=callback) def get(self, key): - '''Get the key/value pairs stored at `key`. If the key is not found, a + '''Get the key-value pairs stored at `key`. If the key is not found, a `KeyError` exception will be thrown. ''' return self.store_get(key) @@ -173,8 +173,8 @@ class AbstractStore(EventDispatcher): self._schedule(self.store_get_async, key=key, callback=callback) def put(self, key, **values): - '''Put new key/value pairs (given in *values*) into the storage. Any - existing key/value pairs will be removed. + '''Put new key-value pairs (given in *values*) into the storage. Any + existing key-value pairs will be removed. ''' need_sync = self.store_put(key, values) if need_sync: @@ -222,7 +222,7 @@ class AbstractStore(EventDispatcher): def find(self, **filters): '''Return all the entries matching the filters. The entries are returned through a generator as a list of (key, entry) pairs - where *entry* is a dict of key/value pairs :: + where *entry* is a dict of key-value pairs :: for key, entry in store.find(name='Mathieu'): print('key:', key, ', entry:', entry)