Mercurial > evolve
changeset 2071:8fbf75ca8a08
serveronly: replace exc.message with str(exc)
BaseException.message is deprecated in Python 2.6, so use str() instead.
author | Arun Kulshreshtha <kulshrax@fb.com> |
---|---|
date | Thu, 09 Mar 2017 12:20:27 -0800 |
parents | 9105c3c54045 |
children | c0a685c67c5c |
files | hgext3rd/evolve/serveronly.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/serveronly.py Thu Mar 09 13:11:20 2017 -0800 +++ b/hgext3rd/evolve/serveronly.py Thu Mar 09 12:20:27 2017 -0800 @@ -21,7 +21,7 @@ obsexchange, ) except ValueError as exc: - if exc.message != 'Attempted relative import in non-package': + if str(exc) != 'Attempted relative import in non-package': raise # extension imported using direct path sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))