#11244: In python-2.7 deprecation warnings are not shown to the user by default
-----------------------+----------------------------------------------------
   Reporter:  fbissey  |          Owner:  jason          
       Type:  defect   |         Status:  needs_work     
   Priority:  major    |      Milestone:  sage-4.7.1     
  Component:  misc     |       Keywords:                 
Work_issues:           |       Upstream:  N/A            
   Reviewer:           |         Author:  François Bissey
     Merged:           |   Dependencies:                 
-----------------------+----------------------------------------------------

Comment(by fbissey):

 The code in question
 {{{
     import warnings
     warnings.warn('RestrictedPartitions is deprecated; use Partitions with
 the parts_in keyword instead.', DeprecationWarning, stacklevel=2)
     from sage.misc.misc import deprecation
     deprecation('RestrictedPartitions is deprecated; use Partitions with
 the parts_in keyword instead.')
     return RestrictedPartitions_nsk(n, S, k)
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11244#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to