mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Get rid of access statement
This commit is contained in:
parent
3e065ada2c
commit
d7abed3b14
4 changed files with 31 additions and 31 deletions
14
Lib/sunau.py
14
Lib/sunau.py
|
@ -149,9 +149,9 @@ def _write_u32(file, x):
|
|||
file.write(chr(int(data[i])))
|
||||
|
||||
class Au_read:
|
||||
access _file, _soundpos, _hdr_size, _data_size, _encoding, \
|
||||
_sampwidth, _framesize, _framerate, _nchannels, \
|
||||
_info: private
|
||||
## access _file, _soundpos, _hdr_size, _data_size, _encoding, \
|
||||
## _sampwidth, _framesize, _framerate, _nchannels, \
|
||||
## _info: private
|
||||
|
||||
def __init__(self, f):
|
||||
if type(f) == type(''):
|
||||
|
@ -280,9 +280,9 @@ class Au_read:
|
|||
self._file = None
|
||||
|
||||
class Au_write:
|
||||
access _file, _framerate, _nchannels, _sampwidth, _framesize, \
|
||||
_nframes, _nframeswritten, _datawritten, _info, \
|
||||
_comptype: private
|
||||
## access _file, _framerate, _nchannels, _sampwidth, _framesize, \
|
||||
## _nframes, _nframeswritten, _datawritten, _info, \
|
||||
## _comptype: private
|
||||
|
||||
def __init__(self, f):
|
||||
if type(f) == type(''):
|
||||
|
@ -410,7 +410,7 @@ class Au_write:
|
|||
#
|
||||
# private methods
|
||||
#
|
||||
if 0: access *: private
|
||||
## if 0: access *: private
|
||||
|
||||
def _ensure_header_written(self):
|
||||
if not self._nframeswritten:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue