• 
      

    Fix a regression with the new log_timed backport on Python < 3.11.

    Review Request #14944 — Created March 18, 2026 and submitted — Latest diff uploaded

    Information

    ReviewBot
    release-4.x

    Reviewers

    The new log_timed() backport that was just committed included an
    import that was only valid on Python 3.11+: datetime.UTC. This was
    fixed in Djblets recently, but that fix didn't make it into the
    backport.

    This change updates the code to use datetime.timezone.utc instead.

    Unit tests pass on all versions of Python.

    Commits

    Files