formatwarning() definition from cherrypy3 incompatible with Python 2.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cherrypy3 (Debian) |
Fix Released
|
Undecided
|
Unassigned | ||
cherrypy3 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Jaunty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
cherrypy3 overwrites method formatwarning() from python warnings module. The method provided by cherrypy3 is incompatible with Python 2.6 and it may throw an TypeError exception:
File "/var/lib/
File "/var/lib/
method()
File "/var/lib/
self.
File "/var/lib/
warnings.
File "/usr/lib/
file.
TypeError: formatwarning() takes exactly 5 arguments (6 given)
The attached patch fixes this issue by adding missing argument (which defaults to None)
TEST CASE:
The simplest Hello World application from http://
import cherrypy
class HelloWorld:
def index(self):
return "Hello world!"
index.exposed = True
cherrypy.
Related branches
Changed in cherrypy3 (Ubuntu): | |
assignee: | nobody → kklimonda |
summary: |
- current version not compatible with python 2.6 (Jaunty) + formatwarning() definition from cherrypy3 incompatible with Python 2.6 |
Changed in cherrypy3 (Ubuntu): | |
status: | New → Confirmed |
status: | Confirmed → In Progress |
Changed in cherrypy3 (Debian): | |
status: | Unknown → New |
tags: | added: patch sru |
In order to fix a bug in released version of Ubuntu you have to follow guidelines that are on https:/ /wiki.edubuntu. org/StableRelea seUpdates/ page. Good luck. If you have questions about it just join #ubuntu-motu channe in irc.freenode.net IRC network.