This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun sage-copy-optional-annotation () | |
"In a 'sage: ' line of a docstring, copy '# optional' from a previous line and | |
advance to the end of the next 'sage: ' line or to the end of the current docstring. | |
If invoked elsewhere, just advance to the end of the next 'sage: ' line." | |
(interactive) | |
(if (save-excursion (beginning-of-line) | |
(looking-at " *sage:")) | |
(multiple-value-bind (tab-stop-list text advance) | |
(save-excursion | |
(previous-line) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adapted from scripts/geocode.py | |
import certifi | |
import urllib3 | |
import pprint | |
from xml.dom.minidom import parseString | |
http = urllib3.PoolManager( | |
cert_reqs='CERT_REQUIRED', |