From 955d88063892f67e957fbe04ab550720974ce630 2012-05-31 02:16:18 From: Aaron Meurer Date: 2012-05-31 02:16:18 Subject: [PATCH] Test against SymPy version 0.7.1, not 0.7.1-git --- diff --git a/IPython/extensions/sympyprinting.py b/IPython/extensions/sympyprinting.py index 5dba85f..01eca93 100644 --- a/IPython/extensions/sympyprinting.py +++ b/IPython/extensions/sympyprinting.py @@ -95,13 +95,13 @@ def load_ipython_extension(ip): printable_containers = [list, tuple] - if sympy.__version__ < '0.7.1-git': - # set and frozen set were broken with SymPy's latex() function, - # but was fixed in the 0.7.1-git development version. See - # http://code.google.com/p/sympy/issues/detail?id=3062. - plaintext_formatter.for_type(cls, print_basic_unicode) - else: + # set and frozen set were broken with SymPy's latex() function, but + # was fixed in the 0.7.1-git development version. See + # http://code.google.com/p/sympy/issues/detail?id=3062. + if sympy.__version__ > '0.7.1': printable_containers += [set, frozenset] + else: + plaintext_formatter.for_type(cls, print_basic_unicode) plaintext_formatter.for_type_by_name( 'sympy.core.basic', 'Basic', print_basic_unicode