Class names are CamelCase.
Methods and variables are snake_case.
Methods with a ? suffix will return a boolean.
| #!/usr/bin/env python | |
| try: | |
| # For Python 3.0 and later | |
| from urllib.request import urlopen | |
| except ImportError: | |
| # Fall back to Python 2's urllib2 | |
| from urllib2 import urlopen | |
| import json |