Merge lp:~cjwatson/lazr.restful/py3-email-utils into lp:lazr.restful

Proposed by Colin Watson
Status: Merged
Merged at revision: 252
Proposed branch: lp:~cjwatson/lazr.restful/py3-email-utils
Merge into: lp:lazr.restful
Diff against target: 12 lines (+1/-1)
1 file modified
src/lazr/restful/_resource.py (+1/-1)
To merge this branch: bzr merge lp:~cjwatson/lazr.restful/py3-email-utils
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+389008@code.launchpad.net

Commit message

Import formatdate from email.utils rather than email.Utils.

Description of the change

This module was renamed in Python 2.5, with compatibility for the old-style names until Python 3.0.

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :

Self-approving this as trivial.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/lazr/restful/_resource.py'
2--- src/lazr/restful/_resource.py 2020-07-22 23:22:26 +0000
3+++ src/lazr/restful/_resource.py 2020-08-10 15:00:51 +0000
4@@ -31,7 +31,7 @@
5
6
7 from datetime import datetime, date
8-from email.Utils import formatdate
9+from email.utils import formatdate
10 import cgi
11 import copy
12 import os

Subscribers

People subscribed via source and target branches