Skip to content

Commit e55f323

Browse files
committed
added print so it's more clear what's going on
1 parent 3aaa648 commit e55f323

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ https://www.firebase.com/signup/
2020
```python
2121
>>> import firebase
2222
>>> URL = 'lucid-lychee' # see note on URLs at the bottom of documentation
23-
>>> firebase.get(URL) == None # this is an empty Firebase
24-
True
23+
>>> print firebase.get(URL) # this is an empty Firebase
24+
None
2525

2626
>>> firebase.put(URL, 'tell me everything') # can take a string
27-
>>> firebase.get(URL)
28-
u'tell me everything'
27+
>>> print firebase.get(URL)
28+
tell me everything
2929

3030
>>> firebase.put(URL, {'lucidity': 9001}) # or a dictionary
31-
>>> firebase.get(URL)
31+
>>> print firebase.get(URL)
3232
{u'lucidity': 9001}
3333

3434
>>> firebase.put(URL, {'color': 'red'}) # replaces old value
35-
>>> firebase.get(URL)
35+
>>> print firebase.get(URL)
3636
{u'color': u'red'}
3737

38-
>>> firebase.get(URL + '/color')
38+
>>> print firebase.get(URL + '/color')
3939
u'red'
4040
```
4141

@@ -48,15 +48,15 @@ u'red'
4848
```python
4949
>>> import firebase
5050
>>> URL = 'tibetan-tumbleweed'
51-
>>> firebase.get(URL) == None
52-
True
51+
>>> print firebase.get(URL)
52+
None
5353

5454
>>> firebase.patch(URL, {'taste': 'tibetan'})
55-
>>> firebase.get(URL)
55+
>>> print firebase.get(URL)
5656
{u'taste': u'tibetan'}
5757

5858
>>> firebase.patch(URL, {'size': 'tumbly}) # patching does not overwrite
59-
>>> firebase.get(URL)
59+
>>> print firebase.get(URL)
6060
{u'taste': u'tibetan', u'size': u'tumbly'}
6161
```
6262

@@ -81,12 +81,12 @@ True
8181
{u'data': {u'status': u'mortified'}, u'path': u'/'}
8282
>>> firebase.patch(URL, {'reason': 'blushing'}) # this one is scary
8383
{u'data': {u'reason': u'blushing'}, u'path': u'/'}
84-
>>> firebase.get(URL) # notice the update only gave us the new k,v without telling us
84+
>>> print firebase.get(URL) # notice the update only gave us the new k,v without telling us
8585
{u'status': u'mortified', u'reason': u'blushing'}
8686

8787
>>> firebase.put(URL, {'color': 'orange-red'}) # expect change from S
8888
{u'data': {u'color': u'orange-red'}, u'path': u'/'}
89-
>>> firebase.get(URL) # put overwrites, but S doesn't tell us!
89+
>>> print firebase.get(URL) # put overwrites, but S doesn't tell us!
9090
{u'color': u'orange-red'}
9191

9292
>>> firebase.put(URL + '/color', 'red')

0 commit comments

Comments
 (0)