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
|
|
@ -281,7 +281,7 @@ def _write_float(f, x):
|
|||
_write_long(f, himant)
|
||||
_write_long(f, lomant)
|
||||
|
||||
class Chunk():
|
||||
class Chunk:
|
||||
def init(self, file):
|
||||
self.file = file
|
||||
self.chunkname = self.file.read(4)
|
||||
|
|
@ -322,7 +322,7 @@ class Chunk():
|
|||
if self.chunksize & 1:
|
||||
dummy = self.read(1)
|
||||
|
||||
class Aifc_read():
|
||||
class Aifc_read:
|
||||
# Variables used in this class:
|
||||
#
|
||||
# These variables are available to the user though appropriate
|
||||
|
|
@ -568,7 +568,7 @@ class Aifc_read():
|
|||
name = _read_string(chunk)
|
||||
self._markers.append((id, pos, name))
|
||||
|
||||
class Aifc_write():
|
||||
class Aifc_write:
|
||||
# Variables used in this class:
|
||||
#
|
||||
# These variables are user settable through appropriate methods
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue