diff options
author | Thomas Kriechbaumer <Kriechi@users.noreply.github.com> | 2016-06-02 22:45:55 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <Kriechi@users.noreply.github.com> | 2016-06-02 22:45:55 +0200 |
commit | b9ad7be5ac3c33970a3a4cb1829108f1cdfda12e (patch) | |
tree | 632b9b8f873a607963aef3d4290f2437a2d5ec9d | |
parent | 66ec1940ac96c0978ca83e7f9b737b050cd7df1c (diff) | |
parent | 8e60a9bca9a14a9b3393b82927c56cdb13e1e8c8 (diff) | |
download | mitmproxy-b9ad7be5ac3c33970a3a4cb1829108f1cdfda12e.tar.gz mitmproxy-b9ad7be5ac3c33970a3a4cb1829108f1cdfda12e.tar.bz2 mitmproxy-b9ad7be5ac3c33970a3a4cb1829108f1cdfda12e.zip |
Merge pull request #1199 from dufferzafar/pathod-generator-hotfix
Handle the slice object case in TransformGenerator.__getitem__
-rw-r--r-- | pathod/language/generators.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pathod/language/generators.py b/pathod/language/generators.py index 01f709e2..9fff3082 100644 --- a/pathod/language/generators.py +++ b/pathod/language/generators.py @@ -37,6 +37,8 @@ class TransformGenerator(object): def __getitem__(self, x): d = self.gen.__getitem__(x) + if isinstance(x, slice): + return self.transform(x.start, d) return self.transform(x, d) def __repr__(self): |