summaryrefslogtreecommitdiffstats
path: root/Lib/profile.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-05-24 14:16:22 (GMT)
committerGuido van Rossum <guido@python.org>1993-05-24 14:16:22 (GMT)
commitd316607732aa70361d5793f6b301b70fab7ca367 (patch)
treed87376c3075042ebffdbf8bb13416f8055a5fd13 /Lib/profile.py
parentb3f7258f14cb2f3e52236a4087ed82541a173e7b (diff)
downloadcpython-d316607732aa70361d5793f6b301b70fab7ca367.zip
cpython-d316607732aa70361d5793f6b301b70fab7ca367.tar.gz
cpython-d316607732aa70361d5793f6b301b70fab7ca367.tar.bz2
* ftplib.py: added abort() command (sends oob data).
* Several modules: change "class C(): ..." to "class C: ...". * flp.py: support for frozen forms. * Added string.find() which is like index but returns -1 if not found
Diffstat (limited to 'Lib/profile.py')
-rwxr-xr-xLib/profile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/profile.py b/Lib/profile.py
index 046b70b..a965f95 100755
--- a/Lib/profile.py
+++ b/Lib/profile.py
@@ -12,7 +12,7 @@ import string
import fpformat
import marshal
-class Profile():
+class Profile:
def init(self):
self.timings = {}
@@ -212,7 +212,7 @@ def depth(frame):
frame = frame.f_back
return d
-class Stats():
+class Stats:
def init(self, file):
f = open(file, 'r')
self.stats = marshal.load(f)