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
b5c29557
Commit
b5c29557
authored
Oct 07, 1994
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init -> __init__
parent
d2efe8b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Demo/sgi/cd/cdaiff.py
Demo/sgi/cd/cdaiff.py
+1
-1
Demo/sgi/cd/playcd.py
Demo/sgi/cd/playcd.py
+2
-2
No files found.
Demo/sgi/cd/cdaiff.py
View file @
b5c29557
...
...
@@ -17,7 +17,7 @@ def main():
a
.
setsampwidth
(
AL
.
SAMPLE_16
)
a
.
setnchannels
(
AL
.
STEREO
)
a
.
setframerate
(
AL
.
RATE_44100
)
r
=
readcd
.
Readcd
()
.
init
()
r
=
readcd
.
Readcd
()
for
arg
in
sys
.
argv
[
2
:]:
x
=
eval
(
arg
)
try
:
...
...
Demo/sgi/cd/playcd.py
View file @
b5c29557
...
...
@@ -52,10 +52,10 @@ def prstatus(status):
def
main
():
import
sys
,
readcd
,
al
,
AL
,
CD
,
cdplayer
verbose
=
0
r
=
readcd
.
Readcd
()
.
init
()
r
=
readcd
.
Readcd
()
prstatus
(
r
.
getstatus
())
prtrackinfo
(
r
.
gettrackinfo
())
cdinfo
=
cdplayer
.
Cdplayer
(
).
init
(
r
.
gettrackinfo
())
cdinfo
=
cdplayer
.
Cdplayer
(
r
.
gettrackinfo
())
if
cdinfo
.
title
<>
''
:
print
'Title: "'
+
cdinfo
.
title
+
'"'
if
cdinfo
.
artist
<>
''
:
...
...
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