# HG changeset patch # User Yuya Nishihara # Date 2018-10-14 11:35:47 # Node ID 091f9b8a1051fde124df082d6e96e2614ab9387a # Parent 7d3285f799cc59ba897450eb5ee6eec4ef326dec notify: just use email.errors email.Errors is a proxy object to email.errors on Python 2. diff --git a/hgext/notify.py b/hgext/notify.py --- a/hgext/notify.py +++ b/hgext/notify.py @@ -141,7 +141,7 @@ web.baseurl ''' from __future__ import absolute_import -import email +import email.errors as emailerrors import email.parser as emailparser import fnmatch import socket @@ -153,7 +153,6 @@ from mercurial import ( logcmdutil, mail, patch, - pycompat, registrar, util, ) @@ -162,11 +161,6 @@ from mercurial.utils import ( stringutil, ) -if pycompat.ispy3: - import email.errors as emailerrors -else: - emailerrors = email.Errors - # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should # be specifying the version(s) of Mercurial they are tested with, or