[facebook] Fix login process

It was broken and didn't work in python 3.
And use `_download_webpage` instead of `compat_urllib_request.urlopen`.
This commit is contained in:
Jaime Marquínez Ferrándiz 2014-03-07 15:25:33 +01:00
parent 94eae04c94
commit b74fa8cd2c
3 changed files with 20 additions and 8 deletions

View file

@ -1263,3 +1263,7 @@ def read_batch_urls(batch_fd):
with contextlib.closing(batch_fd) as fd:
return [url for url in map(fixup, fd) if url]
def urlencode_postdata(*args, **kargs):
return compat_urllib_parse.urlencode(*args, **kargs).encode('ascii')