Ticket #9554: trac_9554-fix_order_of_var_names-SageNB-repo.patch

File trac_9554-fix_order_of_var_names-SageNB-repo.patch, 1.0 KB (added by Leif Leonhardy, 12 years ago)

SageNB repo patch - logically same as http://trac.sagemath.org/sage_trac/attachment/ticket/8988/trac_8988-sageinspect_doctest_fix.patch

  • sagenb/misc/sageinspect.py

    # HG changeset patch
    # User Leif Leonhardy <not.really@online.de>
    # Date 1279812389 -7200
    # Node ID b1a4746a0fd440786fc2344f9fdd74abb9e9d466
    # Parent  f26bc4710e3d052b33c2bc9e00891fd91ee7d5a8
    #9554 Fix trivial doctest error (order of variables names), see also #8988
    
    diff -r f26bc4710e3d -r b1a4746a0fd4 sagenb/misc/sageinspect.py
    a b  
    979979
    980980    If the user has assigned an object ``obj`` to a variable name,
    981981    then return that variable name.  If several variables point to
    982     ``obj``, return a list of those names.  If
     982    ``obj``, return a sorted list of those names.  If
    983983    ``omit_underscore_names`` is True (the default) then omit names
    984984    starting with an underscore "_".
    985985
     
    10141014    if len(result) == 1:
    10151015        return result[0]
    10161016    else:
    1017         return result
     1017        return sorted(result)
    10181018
    10191019__internal_teststring = '''
    10201020import os                                  # 1