Permalink
Browse files

Merge pull request #2 from dbr/unrequest

Replace external 'requests' lib with urllib
  • Loading branch information...
2 parents 17fd566 + e10c3bc commit 53dae877cf52bff72b54da426b62a2b649df35ed @ivolo committed Sep 2, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 examples/loading.py
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:

0 comments on commit 53dae87

Please sign in to comment.