[Python-modules-commits] r410 - in /packages/python-cherrypy/trunk/debian: changelog patches/00_supress_profiler_warning.diff

kov at users.alioth.debian.org kov at users.alioth.debian.org
Fri May 5 02:27:43 UTC 2006


Author: kov
Date: Fri May  5 02:27:43 2006
New Revision: 410

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=410
Log:
  - added to supress the warning that happens when profiling
    is enabled advertising the non-free profiler module

Added:
    packages/python-cherrypy/trunk/debian/patches/00_supress_profiler_warning.diff
Modified:
    packages/python-cherrypy/trunk/debian/changelog

Modified: packages/python-cherrypy/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/python-modules/packages/python-cherrypy/trunk/debian/changelog?rev=410&op=diff
==============================================================================
--- packages/python-cherrypy/trunk/debian/changelog (original)
+++ packages/python-cherrypy/trunk/debian/changelog Fri May  5 02:27:43 2006
@@ -1,3 +1,11 @@
+python-cherrypy (2.2.0-4) unstable; urgency=low
+
+  * debian/patches/00_supress_profiler_warning.diff:
+  - added to supress the warning that happens when profiling
+    is enabled advertising the non-free profiler module
+
+ -- Gustavo Noronha Silva <kov at debian.org>  Thu,  4 May 2006 23:27:25 -0300
+
 python-cherrypy (2.2.0-3) unstable; urgency=low
 
   * Upload to unstable (duh)

Added: packages/python-cherrypy/trunk/debian/patches/00_supress_profiler_warning.diff
URL: http://svn.debian.org/wsvn/python-modules/packages/python-cherrypy/trunk/debian/patches/00_supress_profiler_warning.diff?rev=410&op=file
==============================================================================
--- packages/python-cherrypy/trunk/debian/patches/00_supress_profiler_warning.diff (added)
+++ packages/python-cherrypy/trunk/debian/patches/00_supress_profiler_warning.diff Fri May  5 02:27:43 2006
@@ -1,0 +1,21 @@
+--- cherrypy/lib/profiler.py~	2005-12-28 07:20:42.000000000 -0200
++++ cherrypy/lib/profiler.py	2006-05-04 23:25:12.000000000 -0300
+@@ -46,12 +46,12 @@
+ except ImportError:
+     profile = None
+     pstats = None
+-    import warnings
+-    msg = ("Your installation of Python doesn't have a profile module. "
+-           "If you're on Debian, you can apt-get python2.4-profiler from "
+-           "non-free in a separate step. See http://www.cherrypy.org/wiki/"
+-           "ProfilingOnDebian for details.")
+-    warnings.warn(msg)
++    #import warnings
++    #msg = ("Your installation of Python doesn't have a profile module. "
++    #       "If you're on Debian, you can apt-get python2.4-profiler from "
++    #       "non-free in a separate step. See http://www.cherrypy.org/wiki/"
++    #       "ProfilingOnDebian for details.")
++    #warnings.warn(msg)
+ 
+ import os, os.path
+ import sys




More information about the Python-modules-commits mailing list