[Repoze-checkins] r714 - in repoze.profile/trunk: . repoze/profile

Chris McDonough chrism at agendaless.com
Wed Feb 20 23:33:31 UTC 2008


Author: Chris McDonough <chrism at agendaless.com>
Date: Wed Feb 20 18:33:31 2008
New Revision: 714

Log:
repoze.profile 0.3 (2008-02-20)

  Compatibility with Python 2.5.

  Depend explicitly on ElementTree 1.2.6 (meld needs it but meld isn't
  a setuptools package).



Modified:
   repoze.profile/trunk/CHANGES.txt
   repoze.profile/trunk/repoze/profile/profiler.py
   repoze.profile/trunk/setup.py

Modified: repoze.profile/trunk/CHANGES.txt
==============================================================================
--- repoze.profile/trunk/CHANGES.txt	(original)
+++ repoze.profile/trunk/CHANGES.txt	Wed Feb 20 18:33:31 2008
@@ -1,3 +1,10 @@
+repoze.profile 0.3 (2008-02-20)
+
+  Compatibility with Python 2.5.
+
+  Depend explicitly on ElementTree 1.2.6 (meld needs it but meld isn't
+  a setuptools package).
+
 repoze.profile 0.2 (2008-02-20)
 
   Add a browser UI.

Modified: repoze.profile/trunk/repoze/profile/profiler.py
==============================================================================
--- repoze.profile/trunk/repoze/profile/profiler.py	(original)
+++ repoze.profile/trunk/repoze/profile/profiler.py	Wed Feb 20 18:33:31 2008
@@ -58,13 +58,14 @@
             if not full_dirs:
                 stats.strip_dirs()
             stats.sort_stats(sort)
-
+            if hasattr(stats, 'stream'):
+                # python 2.5
+                stats.stream = output
             try:
-                orig_stdout = sys.stdout
+                orig_stdout = sys.stdout # python 2.4
                 sys.stdout = output
                 print_fn = getattr(stats, 'print_%s' % mode)
                 print_fn(limit)
-                sys.stdout.flush()
             finally:
                 sys.stdout = orig_stdout
 

Modified: repoze.profile/trunk/setup.py
==============================================================================
--- repoze.profile/trunk/setup.py	(original)
+++ repoze.profile/trunk/setup.py	Wed Feb 20 18:33:31 2008
@@ -12,7 +12,7 @@
 #
 ##############################################################################
 
-__version__ = '0.2'
+__version__ = '0.3'
 
 import os
 
@@ -47,8 +47,16 @@
       include_package_data=True,
       namespace_packages=['repoze'],
       zip_safe=False,
-      tests_require = ['meld3', 'Paste'],
-      install_requires=['meld3', 'Paste'],
+      tests_require = [
+                 'meld3',
+                 'Paste',
+                 'elementtree >= 1.2.6, < 1.2.7', # meld3 not setuptools pkg
+                 ],
+      install_requires=[
+                 'meld3',
+                 'Paste',
+                 'elementtree >= 1.2.6, < 1.2.7', # meld3 not setuptools pkg
+                 ],
       test_suite="repoze.profile.tests",
       entry_points = """\
       [paste.filter_app_factory]


More information about the Repoze-checkins mailing list