aboutsummaryrefslogtreecommitdiffhomepage
path: root/devel
diff options
context:
space:
mode:
authorGravatar W. Trevor King <wking@tremily.us>2014-02-10 10:40:23 -0800
committerGravatar David Bremner <david@tethera.net>2014-02-10 21:03:12 -0400
commitee6b5c372f724d2352d155736b81d2d46130c929 (patch)
treed1939dfc1f8b3cb89e91b171c09d0ac56faf16af /devel
parenta8b81adc8eab68cf13f99a8c4d6dd75d6e732a81 (diff)
nmbug-status: Use email.utils instead of rfc822
rfc822 has been deprecated since Python 2.3, and it's gone in Python 3 [1]. [1]: http://docs.python.org/2/library/rfc822.html
Diffstat (limited to 'devel')
-rwxr-xr-xdevel/nmbug/nmbug-status4
1 files changed, 2 insertions, 2 deletions
diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status
index b1feee9f..65251764 100755
--- a/devel/nmbug/nmbug-status
+++ b/devel/nmbug/nmbug-status
@@ -9,7 +9,7 @@
from __future__ import print_function
import datetime
-import rfc822
+import email.utils
import urllib
import json
import argparse
@@ -128,7 +128,7 @@ def print_view(title, query, comment):
val = str.join(' ', val.split(None)[1:4])
val = str(datetime.datetime.strptime(val, '%d %b %Y').date())
elif header == 'from':
- (val, addr) = rfc822.parseaddr(val)
+ (val, addr) = email.utils.parseaddr(val)
if val == '':
val = addr.split('@')[0]