Ticket #8708: trac_8708-doctests.patch

File trac_8708-doctests.patch, 799 bytes (added by John Palmieri, 11 years ago)

Sage repository

  • sage/misc/sageinspect.py

    # HG changeset patch
    # User J. H. Palmieri <palmieri@math.washington.edu>
    # Date 1317183137 25200
    # Node ID 07a9fca334d8849af31719173ed6b27b8496e8bd
    # Parent  f06a2520f7e603d17931a564b197294730b993f7
    #8708: fix problems arising from recognizing ''' as a doctest delimiter
    
    diff --git a/sage/misc/sageinspect.py b/sage/misc/sageinspect.py
    a b def sage_getsourcelines(obj, is_binary=F 
    14381438                    double_quote=True
    14391439                if double_quote:
    14401440                    ignore = not ignore
    1441             elif nfl_strip.startswith("'''"):
     1441            elif nfl_strip.startswith("\'\'\'"):
    14421442                if double_quote is None:
    14431443                    double_quote=False
    14441444                if double_quote is False: