~ubuntu-branches/debian/sid/python-django/sid

« back to all changes in this revision

Viewing changes to django/utils/deprecation.py

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2014-09-17 14:15:11 UTC
  • mfrom: (1.3.17) (6.2.18 experimental)
  • Revision ID: package-import@ubuntu.com-20140917141511-icneokthe9ww5sk4
Tags: 1.7-2
* Release to unstable.
* Add a migrate-south sample script to help users apply their South
  migrations. Thanks to Brian May.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
import warnings
3
3
 
4
4
 
 
5
class RemovedInDjango19Warning(PendingDeprecationWarning):
 
6
    pass
 
7
 
 
8
 
 
9
class RemovedInDjango18Warning(DeprecationWarning):
 
10
    pass
 
11
 
 
12
 
 
13
RemovedInNextVersionWarning = RemovedInDjango18Warning
 
14
 
 
15
 
5
16
class warn_about_renamed_method(object):
6
17
    def __init__(self, class_name, old_method_name, new_method_name, deprecation_warning):
7
18
        self.class_name = class_name