Add util for locking critical sections with 1..n keys

nice


On Mon, Jun 30, 2014 at 9:03 PM, gcapalbo <notifications@github.com> wrote:

> In dimagi/utils/tests/dates.py:
>
> > @@ -27,7 +27,7 @@ def test_adjustment(self):
> >          end = datetime(2014, 3, 7, 2, tzinfo=pytz.utc)
> >          start = end = datetime(2014, 2, 7, 2, tzinfo=pytz.utc)
> >          ds = DateSpan(start, end)
> > -        pst = pytz.timezone('US/Pacific-New')
> > +        pst = pytz.timezone('US/Pacific')
> >          ds.set_timezone(pst)
>
> Also we shouldn't use US/Pacific-New, see
> http://catless.ncl.ac.uk/Risks/13.87.html#subj1
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/dimagi/dimagi-utils/pull/199/files#r14384731>.
>