Be compatible with Mercurial 2.2.2. Thanks, Debian...

More Python 3 support

Remove use of enum in the calculator to drop minimum required version

(0) -100 -30 -10 -3 tip

mercurial