summaryrefslogtreecommitdiff
path: root/Lib/sre_parse.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-05-27 01:18:39 +0000
committerBenjamin Peterson <benjamin@python.org>2008-05-27 01:18:39 +0000
commit01ab9f0cca71e3b09eafed739c4cb8c1ad9aa6c6 (patch)
tree941c68f812024c5118373dc2bdc501f5df94cc24 /Lib/sre_parse.py
parent7eda8db9026936e0b2ba72084898af7df23635da (diff)
downloadcpython-01ab9f0cca71e3b09eafed739c4cb8c1ad9aa6c6.tar.gz
remove some __getslice__
Diffstat (limited to 'Lib/sre_parse.py')
-rw-r--r--Lib/sre_parse.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/sre_parse.py b/Lib/sre_parse.py
index e63f2acbb4..47810193d1 100644
--- a/Lib/sre_parse.py
+++ b/Lib/sre_parse.py
@@ -139,8 +139,6 @@ class SubPattern:
return self.data[index]
def __setitem__(self, index, code):
self.data[index] = code
- def __getslice__(self, start, stop):
- return SubPattern(self.pattern, self.data[start:stop])
def insert(self, index, code):
self.data.insert(index, code)
def append(self, code):