Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Unified Diff: third_party/twisted_8_1/twisted/python/dxprofile.py

Issue 12261012: Remove third_party/twisted_8_1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/twisted_8_1/twisted/python/dist.py ('k') | third_party/twisted_8_1/twisted/python/failure.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/twisted_8_1/twisted/python/dxprofile.py
diff --git a/third_party/twisted_8_1/twisted/python/dxprofile.py b/third_party/twisted_8_1/twisted/python/dxprofile.py
deleted file mode 100644
index 19398932dca4e72b9485cbcdadab4a43b88725ec..0000000000000000000000000000000000000000
--- a/third_party/twisted_8_1/twisted/python/dxprofile.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# Copyright (c) 2001-2007 Twisted Matrix Laboratories.
-# See LICENSE for details.
-
-"""
-DEPRECATED since Twisted 8.0.
-
-Utility functions for reporting bytecode frequencies to Skip Montanaro's
-stat collector.
-
-This module requires a version of Python build with DYNAMIC_EXCUTION_PROFILE,
-and optionally DXPAIRS, defined to be useful.
-"""
-
-import sys, types, xmlrpclib, warnings
-
-
-warnings.warn("twisted.python.dxprofile is deprecated since Twisted 8.0.",
- category=DeprecationWarning)
-
-
-def rle(iterable):
- """
- Run length encode a list.
- """
- iterable = iter(iterable)
- runlen = 1
- result = []
- try:
- previous = iterable.next()
- except StopIteration:
- return []
- for element in iterable:
- if element == previous:
- runlen = runlen + 1
- continue
- else:
- if isinstance(previous, (types.ListType, types.TupleType)):
- previous = rle(previous)
- result.append([previous, runlen])
- previous = element
- runlen = 1
- if isinstance(previous, (types.ListType, types.TupleType)):
- previous = rle(previous)
- result.append([previous, runlen])
- return result
-
-
-
-def report(email, appname):
- """
- Send an RLE encoded version of sys.getdxp() off to our Top Men (tm)
- for analysis.
- """
- if hasattr(sys, 'getdxp') and appname:
- dxp = xmlrpclib.ServerProxy("http://manatee.mojam.com:7304")
- dxp.add_dx_info(appname, email, sys.version_info[:3], rle(sys.getdxp()))
« no previous file with comments | « third_party/twisted_8_1/twisted/python/dist.py ('k') | third_party/twisted_8_1/twisted/python/failure.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698