Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b2b6262

Browse files
committed
Removed some leftovers from the str8 days
1 parent 4d279c1 commit b2b6262

3 files changed

Lines changed: 1 addition & 8 deletions

File tree

Lib/test/string_tests.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -586,10 +586,6 @@ def test_hash(self):
586586
a = self.type2test('DNSSEC')
587587
b = self.type2test('')
588588
for c in a:
589-
## # Special case for the str8, since indexing returns a integer
590-
## # XXX Maybe it would be a good idea to seperate str8's tests...
591-
## if self.type2test == str8:
592-
## c = chr(c)
593589
b += c
594590
hash(b)
595591
self.assertEqual(hash(a), hash(b))

Lib/test/test_bytes.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -801,9 +801,6 @@ class BytearrayPEP3137Test(unittest.TestCase,
801801
test.buffer_tests.MixinBytesBufferCommonTests):
802802
def marshal(self, x):
803803
return bytearray(x)
804-
# TODO this should become:
805-
#return bytearray(x)
806-
# once the bytes -> bytearray and str8 -> bytes rename happens
807804

808805
def test_returns_new_copy(self):
809806
val = self.marshal(b'1234')

Modules/_tkinter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ PyTclObject_TclString(PyObject *self)
750750

751751
/* Like _str, but create Unicode if necessary. */
752752
PyDoc_STRVAR(PyTclObject_string__doc__,
753-
"the string representation of this object, either as str8 or str");
753+
"the string representation of this object, either as str or bytes");
754754

755755
static PyObject *
756756
PyTclObject_string(PyTclObject *self, void *ignored)

0 commit comments

Comments
 (0)