Ticket #10637: trac_10637-sagenb-reviewer.patch

File trac_10637-sagenb-reviewer.patch, 898 bytes (added by kcrisman, 9 years ago)

Apply to sagenb

  • sagenb/misc/comments2rst.py

    # HG changeset patch
    # User Karl-Dieter Crisman <kcrisman@gmail.com>
    # Date 1340327650 14400
    # Node ID 92ffbddc9df888caefe91bdb80ca137838b27b39
    # Parent  292f302daa474c1f682cc958ee156e8307ade219
    Trac 10637 reviewer patch
    
    More accurate error message if BeautifulSoup is not installed
    
    diff --git a/sagenb/misc/comments2rst.py b/sagenb/misc/comments2rst.py
    a b  
    2121except ImportError:
    2222    raise ImportError, """BeautifulSoup must be installed.
    2323
    24 You might download a spkg from:
     24Please either install using Sage spkg installation
    2525
    26 http://trac.sagemath.org/sage_trac/raw-attachment/ticket/10637/beautifulsoup-3.2.0.p0.spkg
     26    sage -i beautifulsoup
     27
     28or by using one of
     29
     30    pip install BeautifulSoup
     31    easy_install BeautifulSoup
     32
     33in the Sage shell (sage --sh).
    2734"""
    2835
    2936def preprocess_display_latex(text):