net/cache readUrl->read_url / Unicode -> unicode=True

format replace all CammelCase with under_score
This commit is contained in:
j 2012-08-14 15:58:05 +02:00
commit 2de989e188
33 changed files with 243 additions and 254 deletions

View file

@ -4,13 +4,13 @@ import re
from StringIO import StringIO
import xml.etree.ElementTree as ET
from ox.cache import readUrl, readUrlUnicode
from ox.cache import read_url
from ox import findString, findRe
def getData(id):
url = 'http://www.vimeo.com/moogaloop/load/clip:%s' %id
xml = readUrl(url)
xml = read_url(url)
tree = ET.parse(StringIO(xml))
request_signature = tree.find('request_signature').text
request_signature_expires = tree.find('request_signature_expires').text