summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-02-19 23:26:42 +0100
committerGuido Günther <agx@sigxcpu.org>2015-02-20 12:58:54 +0100
commitbaaafab5a445ae7170b0308573616d52651479e8 (patch)
tree18682b6bba615d269dcaa033758f5055fe3462bc
parent7f1b1c6f0a8837ff9175190e8fe254ef64166b88 (diff)
Use email.utils instead of email.Utils
works with python 2 and 3
-rw-r--r--gbp/deb/changelog.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/deb/changelog.py b/gbp/deb/changelog.py
index 725e8ba..a483b33 100644
--- a/gbp/deb/changelog.py
+++ b/gbp/deb/changelog.py
@@ -175,14 +175,14 @@ class ChangeLog(object):
"""
The author of the last modification
"""
- return email.Utils.parseaddr(self._cp['Maintainer'])[0]
+ return email.utils.parseaddr(self._cp['Maintainer'])[0]
@property
def email(self):
"""
The author's email
"""
- return email.Utils.parseaddr(self._cp['Maintainer'])[1]
+ return email.utils.parseaddr(self._cp['Maintainer'])[1]
@property
def date(self):