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
d7943cb7
Commit
d7943cb7
authored
May 17, 2008
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix spelling
parent
79a922d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Lib/test/test_py3kwarn.py
Lib/test/test_py3kwarn.py
+1
-1
Python/bltinmodule.c
Python/bltinmodule.c
+1
-1
No files found.
Lib/test/test_py3kwarn.py
View file @
d7943cb7
...
@@ -133,7 +133,7 @@ class TestPy3KWarnings(unittest.TestCase):
...
@@ -133,7 +133,7 @@ class TestPy3KWarnings(unittest.TestCase):
'Also, note the returned format is different.'
'Also, note the returned format is different.'
with
catch_warning
()
as
w
:
with
catch_warning
()
as
w
:
self
.
assertWarning
(
oct
(
Spam
()),
w
,
expected
)
self
.
assertWarning
(
oct
(
Spam
()),
w
,
expected
)
expected
=
'In 3.x, hex() converts the result of __index__ to hex
i
decimal.'
expected
=
'In 3.x, hex() converts the result of __index__ to hex
a
decimal.'
with
catch_warning
()
as
w
:
with
catch_warning
()
as
w
:
self
.
assertWarning
(
hex
(
Spam
()),
w
,
expected
)
self
.
assertWarning
(
hex
(
Spam
()),
w
,
expected
)
...
...
Python/bltinmodule.c
View file @
d7943cb7
...
@@ -1186,7 +1186,7 @@ builtin_hex(PyObject *self, PyObject *v)
...
@@ -1186,7 +1186,7 @@ builtin_hex(PyObject *self, PyObject *v)
if
(
nb
!=
NULL
&&
nb
->
nb_hex
!=
NULL
)
{
if
(
nb
!=
NULL
&&
nb
->
nb_hex
!=
NULL
)
{
if
(
PyErr_WarnPy3k
(
"In 3.x, hex() converts "
if
(
PyErr_WarnPy3k
(
"In 3.x, hex() converts "
"the result of __index__ to hex
i
decimal."
,
"the result of __index__ to hex
a
decimal."
,
1
)
<
0
)
1
)
<
0
)
return
NULL
;
return
NULL
;
res
=
(
*
nb
->
nb_hex
)(
v
);
res
=
(
*
nb
->
nb_hex
)(
v
);
...
...
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