Mercurial > hg > CommitWatcher
view commitwatcher/store.py @ 3:134cdb6a882c
commitwatcher/__init__.py
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 26 Sep 2013 22:19:07 -0700 |
parents | 4cb3971d9d9d |
children | d85093ba9f45 |
line wrap: on
line source
from abc import abstractmethod class CommitStore(object): """ABC for commits""" @abstractmethod def add(self, commit): """adds a commit to the store""" class MemoryStore(CommitStore): """store in volatile memory""" # volatile! def add(self, commit): raise NotImplementedError