Commit Graph
6 Commits
Author SHA1 Message Date
Xavier Morel 9ad6458241 [FIX] website_twitter: finish P3 migration
I clearly missed some bits in 01e3514147
as _get_access_token was still using urllib.Request despite that
import having been removed.

Fix it up by properly converting it to requests.

Fixes #21544
2017-12-11 11:51:17 +01:00
Xavier Morel 01e3514147 [FIX] P3: urllib, urllib2 and urlparse
In Python 3, all of these were "consolidated" under urllib(.request,
.parse, .errors) which is inconvenient.

Since we already have hard dependencies on requests and
werkzeug(.urls, which is a backport of Python 3's unicode-aware
urllib.parse) migrate *everything* to that.

A sticking point is urllib2.URLError, those were (mostly) replaced by
the slightly more general IOError which URLError extends.
2017-05-15 12:26:30 +02:00
Xavier Morel 3979f6802e [#8530] convert exception handlers to except..as syntax
Futurize fixers:
* lib2to3.fixes.fix_except
2017-04-11 14:53:29 +02:00
Rohan Patel c3ff15b147 [MIG] website_twitter: migration to new api 2016-04-07 14:18:05 +02:00
Rohan Patel 12bd44fd96 [MOV] website_twitter: split the module files 2016-04-07 14:18:05 +02:00
Rohan Patel 68863d101e [MOV] website_twitter: restructured module files 2016-04-07 14:18:05 +02:00