[Python-modules-commits] r734 - /packages/python-cherrypy/trunk/debian/patches/00_supress_profiler_warning.diff

kov at users.alioth.debian.org kov at users.alioth.debian.org
Mon Jun 5 02:47:02 UTC 2006


Author: kov
Date: Mon Jun  5 02:47:02 2006
New Revision: 734

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=734
Log:
updated patch

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

Modified: 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=734&op=diff
==============================================================================
--- packages/python-cherrypy/trunk/debian/patches/00_supress_profiler_warning.diff (original)
+++ packages/python-cherrypy/trunk/debian/patches/00_supress_profiler_warning.diff Mon Jun  5 02:47:02 2006
@@ -1,21 +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
+--- cherrypy/lib/profiler.py~	2006-06-04 23:45:51.000000000 -0300
++++ cherrypy/lib/profiler.py	2006-06-04 23:46:23.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
+ 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