Make work in Python 3 #2951

merged 2 commits into from Mar 4, 2014

3 participants

SymPy member

No description provided.

SymPy member

Yep, looks good.

@flacjacket flacjacket merged commit 7b7e4b1 into sympy:master Mar 4, 2014

1 check passed

Details default The Travis CI build passed
@skirpichev skirpichev commented on the diff Mar 5, 2014
import inspect
from argparse import ArgumentParser, RawDescriptionHelpFormatter
-from HTMLParser import HTMLParser
+ from HTMLParser import HTMLParser
+except ImportError:
+ # It's html.parser in Python 3
+ from html.parser import HTMLParser
skirpichev Mar 5, 2014

I think, this should go to sympy.core.compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment