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
aa3b5b85
Commit
aa3b5b85
authored
Jun 30, 2009
by
Gregory P. Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PendingDeprecationWarning -> DeprecationWarning. Both of these were
properly documented as being deprecated in 3.1.
parent
84ec8d93
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Lib/ntpath.py
Lib/ntpath.py
+1
-1
Lib/unittest.py
Lib/unittest.py
+1
-1
No files found.
Lib/ntpath.py
View file @
aa3b5b85
...
@@ -233,7 +233,7 @@ def splitunc(p):
...
@@ -233,7 +233,7 @@ def splitunc(p):
"""
"""
import
warnings
import
warnings
warnings
.
warn
(
"ntpath.splitunc is deprecated, use ntpath.splitdrive instead"
,
warnings
.
warn
(
"ntpath.splitunc is deprecated, use ntpath.splitdrive instead"
,
Pending
DeprecationWarning
)
DeprecationWarning
)
sep
=
_get_sep
(
p
)
sep
=
_get_sep
(
p
)
if
not
p
[
1
:
2
]:
if
not
p
[
1
:
2
]:
return
p
[:
0
],
p
# Drive letter present
return
p
[:
0
],
p
# Drive letter present
...
...
Lib/unittest.py
View file @
aa3b5b85
...
@@ -680,7 +680,7 @@ class TestCase(object):
...
@@ -680,7 +680,7 @@ class TestCase(object):
def
deprecated_func
(
*
args
,
**
kwargs
):
def
deprecated_func
(
*
args
,
**
kwargs
):
warnings
.
warn
(
warnings
.
warn
(
'Please use {0} instead.'
.
format
(
original_func
.
__name__
),
'Please use {0} instead.'
.
format
(
original_func
.
__name__
),
Pending
DeprecationWarning
,
2
)
DeprecationWarning
,
2
)
return
original_func
(
*
args
,
**
kwargs
)
return
original_func
(
*
args
,
**
kwargs
)
return
deprecated_func
return
deprecated_func
...
...
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