Python 2.6 deprecations

Bug #378889 reported by Stani
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Phatch
Fix Released
Low
Stani

Bug Description

Check if these deprecations can be compatible between python 2.5 and 2.6

/home/stani/sync/python/phatch/trunk/phatch/core/lib/formField.py:272: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  self.message = message

Stani (stani)
Changed in phatch:
assignee: nobody → stani (stani)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Stani (stani) wrote :

$ bzr diff
=== modified file 'phatch/core/lib/formField.py'
--- phatch/core/lib/formField.py 2009-05-21 05:02:17 +0000
+++ phatch/core/lib/formField.py 2009-05-22 03:10:58 +0000
@@ -270,11 +270,11 @@
         message - message why validation failed
         details - eg. which variables are allowed"""
         self.expected = expected
- self.message = message
+ self._message = message
         self.details = details

     def __str__(self):
- return self.message
+ return self._message

 #---field mixins
 class PilConstantMixin:

$ bzr commit -m "fix exception message deprecation warning for python 2.6"
Committing to: /home/stani/sync/python/phatch/trunk/
modified phatch/core/lib/formField.py
Committed revision 584.

Changed in phatch:
status: Confirmed → Fix Committed
Stani (stani)
Changed in phatch:
milestone: none → 0.2.1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.