diff options
author | David Robillard <d@drobilla.net> | 2019-06-06 22:30:46 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-06-06 22:30:46 +0200 |
commit | 2f22513494d9c5092254c428eb487510d81a7857 (patch) | |
tree | 704d483d3472d2ae17d426085ce435434f525711 /extras | |
parent | 384566135906ea6cbdc03cef0e76f6ed11e208fd (diff) | |
download | autowaf-2f22513494d9c5092254c428eb487510d81a7857.tar.gz autowaf-2f22513494d9c5092254c428eb487510d81a7857.tar.bz2 autowaf-2f22513494d9c5092254c428eb487510d81a7857.zip |
Fix get_news() to work with Python 3
Diffstat (limited to 'extras')
-rw-r--r-- | extras/autowaf.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/autowaf.py b/extras/autowaf.py index 7305eed..abcdc49 100644 --- a/extras/autowaf.py +++ b/extras/autowaf.py @@ -1324,7 +1324,7 @@ def get_news(in_file, entry_props={}): """ import re - import rfc822 + import email.utils f = open(in_file, 'r') entries = {} @@ -1366,7 +1366,7 @@ def get_news(in_file, entry_props={}): # Read footer line foot = f.readline() matches = re.compile(' -- (.*) <(.*)> (.*)').match(foot) - entry['date'] = rfc822.parsedate(matches.group(3)) + entry['date'] = email.utils.parsedate(matches.group(3)) entry['blamee_name'] = matches.group(1) entry['blamee_mbox'] = matches.group(2) entry.update(entry_props) |