File: 00_supress_profiler_warning.diff

package info (click to toggle)
python-cherrypy 2.2.1-3
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 796 kB
  • ctags: 1,079
  • sloc: python: 7,869; makefile: 15
file content (21 lines) | stat: -rw-r--r-- 887 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- 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