Since we want our bots to be both python 2 and python 3 compatible, we use six to make up for both of them and run the bot smoothly. 'http.client' was basically used for error-handling by the author of the bot, urllib errors can be handled by the urllib itself. So, using this for simplicity. urllib.request.urlopen raises URLError on protocol errors. |
||
|---|---|---|
| .. | ||
| bots | ||
| .gitignore | ||
| __init__.py | ||
| lib.py | ||
| provision.py | ||
| run.py | ||
| test_lib.py | ||