Ticket #9546: 9546_scope_fix.patch

File 9546_scope_fix.patch, 741 bytes (added by gbe, 10 years ago)
  • sage/graphs/generic_graph.py

    # HG changeset patch
    # User Geoffrey Ehrman <gehrman@gmail.com>
    # Date 1294873834 28800
    # Node ID fe06181143673df60d29e7a97fbe3feff9915134
    # Parent  380d94b0684c24e2aca13d750b8fc2707f934258
    Trac #9546: fixes doctest breakage caused by a call to an out of scope floor(x) function by bringing floor into scope
    
    diff -r 380d94b0684c -r fe0618114367 sage/graphs/generic_graph.py
    a b  
    49984998            4
    49994999        """
    50005000        from sage.graphs.digraph import DiGraph
     5001        from sage.functions.other import floor
    50015002
    50025003        # Whether we should consider the edges labeled
    50035004        if use_edge_labels: