Use email.utils instead of email.Utils
authorGuido Günther <agx@sigxcpu.org>
Thu, 19 Feb 2015 22:26:42 +0000 (23:26 +0100)
committerGuido Günther <agx@sigxcpu.org>
Fri, 20 Feb 2015 11:58:54 +0000 (12:58 +0100)
works with python 2 and 3

gbp/deb/changelog.py

index 725e8bae320500bd4b87b8de9aaeeda351fb34b4..a483b3392d8de24a5dcc73254ed7de3613f047f6 100644 (file)
@@ -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):