diff options
author | Thomas Wouters <thomas@python.org> | 2007-08-30 22:57:53 +0000 |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2007-08-30 22:57:53 +0000 |
commit | d2cf20eea2338a0369d4a5707adb01b201f7dfb2 (patch) | |
tree | 59fd4a094906997ae2b0cd520ff09010457da680 /Lib/sre_parse.py | |
parent | 582b5866174d20f7c027cbb6fb757fefb382f96f (diff) | |
download | cpython-git-d2cf20eea2338a0369d4a5707adb01b201f7dfb2.tar.gz |
Remove the simple slicing API. All slicing is now done with slice objects.
Diffstat (limited to 'Lib/sre_parse.py')
-rw-r--r-- | Lib/sre_parse.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/sre_parse.py b/Lib/sre_parse.py index 7d5c0d6154..22e762b551 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): |