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
b2b62628
Commit
b2b62628
authored
Nov 22, 2007
by
Christian Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed some leftovers from the str8 days
parent
4d279c1f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
8 deletions
+1
-8
Lib/test/string_tests.py
Lib/test/string_tests.py
+0
-4
Lib/test/test_bytes.py
Lib/test/test_bytes.py
+0
-3
Modules/_tkinter.c
Modules/_tkinter.c
+1
-1
No files found.
Lib/test/string_tests.py
View file @
b2b62628
...
@@ -586,10 +586,6 @@ class CommonTest(BaseTest):
...
@@ -586,10 +586,6 @@ class CommonTest(BaseTest):
a
=
self
.
type2test
(
'DNSSEC'
)
a
=
self
.
type2test
(
'DNSSEC'
)
b
=
self
.
type2test
(
''
)
b
=
self
.
type2test
(
''
)
for
c
in
a
:
for
c
in
a
:
## # Special case for the str8, since indexing returns a integer
## # XXX Maybe it would be a good idea to seperate str8's tests...
## if self.type2test == str8:
## c = chr(c)
b
+=
c
b
+=
c
hash
(
b
)
hash
(
b
)
self
.
assertEqual
(
hash
(
a
),
hash
(
b
))
self
.
assertEqual
(
hash
(
a
),
hash
(
b
))
...
...
Lib/test/test_bytes.py
View file @
b2b62628
...
@@ -801,9 +801,6 @@ class BytearrayPEP3137Test(unittest.TestCase,
...
@@ -801,9 +801,6 @@ class BytearrayPEP3137Test(unittest.TestCase,
test
.
buffer_tests
.
MixinBytesBufferCommonTests
):
test
.
buffer_tests
.
MixinBytesBufferCommonTests
):
def
marshal
(
self
,
x
):
def
marshal
(
self
,
x
):
return
bytearray
(
x
)
return
bytearray
(
x
)
# TODO this should become:
#return bytearray(x)
# once the bytes -> bytearray and str8 -> bytes rename happens
def
test_returns_new_copy
(
self
):
def
test_returns_new_copy
(
self
):
val
=
self
.
marshal
(
b'1234'
)
val
=
self
.
marshal
(
b'1234'
)
...
...
Modules/_tkinter.c
View file @
b2b62628
...
@@ -750,7 +750,7 @@ PyTclObject_TclString(PyObject *self)
...
@@ -750,7 +750,7 @@ PyTclObject_TclString(PyObject *self)
/* Like _str, but create Unicode if necessary. */
/* Like _str, but create Unicode if necessary. */
PyDoc_STRVAR
(
PyTclObject_string__doc__
,
PyDoc_STRVAR
(
PyTclObject_string__doc__
,
"the string representation of this object, either as str
8 or str
"
);
"the string representation of this object, either as str
or bytes
"
);
static
PyObject
*
static
PyObject
*
PyTclObject_string
(
PyTclObject
*
self
,
void
*
ignored
)
PyTclObject_string
(
PyTclObject
*
self
,
void
*
ignored
)
...
...
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