Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
| from urllib2 import urlopen | |
| def bad_url(url): | |
| fail = False | |
| try: | |
| code = urlopen(url).code | |
| if code > 400: | |
| fail = True | |
| except: | |
| fail = True |
| from urllib2 import urlopen | |
| URLfail = False | |
| try: | |
| code = urlopen(the_url).code | |
| if code >= 400: | |
| URLfail = True | |
| except: | |
| URLfail = True |