Skip to content

Instantly share code, notes, and snippets.

View kevcoxe's full-sized avatar

Kevin Coxe kevcoxe

View GitHub Profile
git rebase origin/master
# fix conflicts
git add -A
git rebase --continue
git push --force
@SpotlightKid
SpotlightKid / getdocstrings.py
Created September 1, 2014 09:22
Parse Python source code and get or print docstrings.
# -*- coding: utf-8 -*-
"""Parse Python source code and get or print docstrings."""
__all__ = ('get_docstrings', 'print_docstrings')
import ast
from itertools import groupby
from os.path import basename, splitext