serveronly: replace exc.message with str(exc)
BaseException.message is deprecated in Python 2.6, so use str() instead.
--- 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__)))