From baaafab5a445ae7170b0308573616d52651479e8 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Thu, 19 Feb 2015 23:26:42 +0100 Subject: Use email.utils instead of email.Utils works with python 2 and 3 --- gbp/deb/changelog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gbp') 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): -- cgit v1.2.3