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
ddf949f1
Commit
ddf949f1
authored
16 years ago
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The CD and cd modules for IRIX are deprecated for 3.0.
parent
0b6b5236
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
1 deletion
+16
-1
Lib/plat-irix5/CD.py
Lib/plat-irix5/CD.py
+4
-0
Lib/plat-irix6/CD.py
Lib/plat-irix6/CD.py
+4
-0
Lib/test/test_py3kwarn.py
Lib/test/test_py3kwarn.py
+1
-1
Misc/NEWS
Misc/NEWS
+3
-0
Modules/cdmodule.c
Modules/cdmodule.c
+4
-0
No files found.
Lib/plat-irix5/CD.py
View file @
ddf949f1
from
warnings
import
warnpy3k
warnpy3k
(
"the CD module has been removed in Python 3.0"
,
stacklevel
=
2
)
del
warnpy3k
ERROR
=
0
NODISC
=
1
READY
=
2
...
...
This diff is collapsed.
Click to expand it.
Lib/plat-irix6/CD.py
View file @
ddf949f1
from
warnings
import
warnpy3k
warnpy3k
(
"the CD module has been removed in Python 3.0"
,
stacklevel
=
2
)
del
warnpy3k
ERROR
=
0
NODISC
=
1
READY
=
2
...
...
This diff is collapsed.
Click to expand it.
Lib/test/test_py3kwarn.py
View file @
ddf949f1
...
...
@@ -131,7 +131,7 @@ class TestStdlibRemovals(unittest.TestCase):
all_platforms
=
(
'audiodev'
,
'imputil'
,
'mutex'
,
'user'
,
'new'
,
'rexec'
,
'Bastion'
,
'compiler'
,
'dircache'
,
'fpformat'
,
'ihooks'
,
'mhlib'
)
inclusive_platforms
=
{
'irix'
:
(
'pure'
,
'AL'
,
'al'
),
inclusive_platforms
=
{
'irix'
:
(
'pure'
,
'AL'
,
'al'
,
'CD'
,
'cd'
),
'darwin'
:
(
'autoGIL'
,
'Carbon'
,
'OSATerminology'
,
'icglue'
,
'Nav'
,
'MacOS'
,
'aepack'
,
'aetools'
,
'aetypes'
,
'applesingle'
,
...
...
This diff is collapsed.
Click to expand it.
Misc/NEWS
View file @
ddf949f1
...
...
@@ -32,6 +32,9 @@ Extension Modules
Library
-------
- The cd and CD modules for IRIX have been deprecated for removal in
Python 3.0.
- The al and AL modules for IRIX have been deprecated for removal in
Python 3.0.
...
...
This diff is collapsed.
Click to expand it.
Modules/cdmodule.c
View file @
ddf949f1
...
...
@@ -758,6 +758,10 @@ void
initcd
(
void
)
{
PyObject
*
m
,
*
d
;
if
(
PyErr_WarnPy3k
(
"the cd module has been removed in "
"Python 3.0"
,
2
)
<
0
)
return
;
m
=
Py_InitModule
(
"cd"
,
CD_methods
);
if
(
m
==
NULL
)
...
...
This diff is collapsed.
Click to expand it.
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