Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3db6ebcc
Commit
3db6ebcc
authored
Jan 28, 1994
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use __builtin__ instead of builtin
parent
ffe9490d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Lib/aifc.py
Lib/aifc.py
+3
-3
Lib/sunau.py
Lib/sunau.py
+4
-4
No files found.
Lib/aifc.py
View file @
3db6ebcc
...
...
@@ -133,7 +133,7 @@
# changed by calling aiff() or aifc() before the first writeframes or
# writeframesraw.
import
builtin
import
__builtin__
try
:
import
CL
except
ImportError
:
...
...
@@ -410,7 +410,7 @@ class Aifc_read:
def
__init__
(
self
,
f
):
if
type
(
f
)
==
type
(
''
):
f
=
builtin
.
open
(
f
,
'r'
)
f
=
__builtin__
.
open
(
f
,
'r'
)
# else, assume it is an open file object already
self
.
initfp
(
f
)
...
...
@@ -616,7 +616,7 @@ class Aifc_write:
def
__init__
(
self
,
f
):
if
type
(
f
)
==
type
(
''
):
filename
=
f
f
=
builtin
.
open
(
f
,
'w'
)
f
=
__builtin__
.
open
(
f
,
'w'
)
else
:
# else, assume it is an open file object already
filename
=
'???'
...
...
Lib/sunau.py
View file @
3db6ebcc
...
...
@@ -153,8 +153,8 @@ class Au_read:
def
__init__
(
self
,
f
):
if
type
(
f
)
==
type
(
''
):
import
builtin
f
=
builtin
.
open
(
f
,
'r'
)
import
__builtin__
f
=
__builtin__
.
open
(
f
,
'r'
)
self
.
initfp
(
f
)
def
__del__
(
self
):
...
...
@@ -284,8 +284,8 @@ class Au_write:
def
__init__
(
self
,
f
):
if
type
(
f
)
==
type
(
''
):
import
builtin
f
=
builtin
.
open
(
f
,
'w'
)
import
__builtin__
f
=
__builtin__
.
open
(
f
,
'w'
)
self
.
initfp
(
f
)
def
__del__
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment