mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
* 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
This commit is contained in:
parent
b3f7258f14
commit
d316607732
15 changed files with 127 additions and 35 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue