thomasleese / smartbot

A supposedly smart IRC bot. (I now use Hubot...)
MIT License
2 stars 5 forks source link

Use params keyword argument for requests #24

Closed Cyanogenoid closed 10 years ago

Cyanogenoid commented 10 years ago

It is better style to pass url parameters such as in http://example.tld/?foo=bar&baz=... to the params argument of requests. This keeps the urls cleaner and removes the need of formatting with urllib-escaped strings, as requests will handle all that on its own.