After this PR is merged, we can squish all of the migrations in another
branch.


On Mon, Oct 21, 2013 at 2:33 PM, Gordon Morehouse
<notifications@github.com>wrote:

> In accounts/migrations/0001_move_profile_to_accounts.py:
>
> > +class RedirectStdStreams(object):
> > +    def __init__(self, stdout=None, stderr=None):
> > +        self._stdout = stdout or sys.stdout
> > +        self._stderr = stderr or sys.stderr
> > +
> > +    def __enter__(self):
> > +        self.old_stdout, self.old_stderr = sys.stdout, sys.stderr
> > +        self.old_stdout.flush(); self.old_stderr.flush()
> > +        sys.stdout, sys.stderr = self._stdout, self._stderr
> > +
> > +    def __exit__(self, exc_type, exc_value, traceback):
> > +        self._stdout.flush(); self._stderr.flush()
> > +        sys.stdout = self.old_stdout
> > +        sys.stderr = self.old_stderr
> > +
> > +class Migration(SchemaMigration):
>
> is this still relevant or should we start from where taffy's instance is
> at right now? forgive if this is a dumbass misinterpretation of what's
> going on here.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/gordon-morehouse/share2grandma/pull/22/files#r7109264>
> .
>