diff options
| author | Rapptz <[email protected]> | 2015-11-20 17:39:19 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-11-20 17:39:51 -0500 |
| commit | 5ca04ea08f3d64d4e2bfb1b86c7a8a01b2480f87 (patch) | |
| tree | 80501a19e4320067c808ab8d5c3a6ccc824461f8 /examples | |
| parent | Allow sending raw file objects in memory with client.send_raw_file (diff) | |
| download | discord.py-5ca04ea08f3d64d4e2bfb1b86c7a8a01b2480f87.tar.xz discord.py-5ca04ea08f3d64d4e2bfb1b86c7a8a01b2480f87.zip | |
Use try-except instead of checking for membership.
Basically, a lot of the checks revolving "if x in y" could be written
more efficiently by doing the task anyway and ignoring the exception
a la the EAFP guideline.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions