summaryrefslogtreecommitdiffstats
path: root/Lib/_abcoll.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-10-26 17:39:48 (GMT)
committerGuido van Rossum <guido@python.org>2007-10-26 17:39:48 (GMT)
commita5d2d5573a6dc24f6b0de8dd089290216bd96249 (patch)
tree9d141d6662360962281d83a35c0f3798b5bc8f08 /Lib/_abcoll.py
parent57233cb3f9d59233711e63034cc1e84360f0da15 (diff)
downloadcpython-a5d2d5573a6dc24f6b0de8dd089290216bd96249.zip
cpython-a5d2d5573a6dc24f6b0de8dd089290216bd96249.tar.gz
cpython-a5d2d5573a6dc24f6b0de8dd089290216bd96249.tar.bz2
Patch 1335 by Christian Heimes.
Add a bytes iterator (copied from stringobject.c and reindented :-). I (Guido) added a small change to _abcoll.py to remove the registration of bytes as a virtual subtype of Iterator -- the presence of __iter__ will handle that now.
Diffstat (limited to 'Lib/_abcoll.py')
-rw-r--r--Lib/_abcoll.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py
index 37e19f2..8f630bf 100644
--- a/Lib/_abcoll.py
+++ b/Lib/_abcoll.py
@@ -51,8 +51,6 @@ class Iterable(metaclass=ABCMeta):
return True
return NotImplemented
-Iterable.register(bytes)
-
class Iterator(metaclass=ABCMeta):