Permalink
Browse files

Merge branch 'master' of github.com:ivolo/animals

  • Loading branch information...
2 parents 44ec42c + 2bd9c3e commit c9aa197b48e4b54cc0d7912dc97b59e1e69cd7ec @ivolo committed Sep 2, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −2 examples/loading.py
  2. +0 −2 readme.md
View
@@ -1,7 +1,7 @@
import os
import sys
-import requests
+import urllib
from random import randint
from time import sleep
@@ -51,7 +51,8 @@ def next_frame(index=0, offset=0, reverse=False,
"terminal": terminal
}
- return requests.get(BASE_URL, params=payload).text
+ params = urllib.urlencode(payload)
+ return urllib.urlopen(BASE_URL + "?" + params).read()
class ProgressBar:
View
@@ -1,5 +1,4 @@
-
# Animals
Loading indicator innovation. Enterprise loading solutions. Synergy.
@@ -33,7 +32,6 @@ curl -s https://raw.github.com/ivolo/animals/master/examples/loading.sh | sh
```
```bash
-pip install requests
curl -s https://raw.github.com/ivolo/animals/master/examples/loading.py | python
```

0 comments on commit c9aa197

Please sign in to comment.