# HG changeset patch
# User David Loeffler <d.loeffler.01@cantab.net>
# Date 1277973630 -3600
# Node ID a7c1f37251564487e9cfb6fdec2a35dec4e66e1a
# Parent bbc65f443ea842243acc4e850a5a38ff9ab239ae
#8988: fix a random broken introspection doctest
diff -r bbc65f443ea8 -r a7c1f3725156 sage/misc/sageinspect.py
|
a
|
b
|
|
| 965 | 965 | |
| 966 | 966 | If the user has assigned an object ``obj`` to a variable name, |
| 967 | 967 | then return that variable name. If several variables point to |
| 968 | | ``obj``, return a list of those names. If |
| | 968 | ``obj``, return a sorted list of those names. If |
| 969 | 969 | ``omit_underscore_names`` is True (the default) then omit names |
| 970 | 970 | starting with an underscore "_". |
| 971 | 971 | |
| … |
… |
|
| 1000 | 1000 | if len(result) == 1: |
| 1001 | 1001 | return result[0] |
| 1002 | 1002 | else: |
| 1003 | | return result |
| | 1003 | return sorted(result) |
| 1004 | 1004 | |
| 1005 | 1005 | __internal_teststring = ''' |
| 1006 | 1006 | import os # 1 |