From 5740c45791a7b31feb5f589acf744dc14d6c1a7b Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 28 Apr 2014 19:31:41 +0200 Subject: [PATCH] again tokenize simplifications --- jedi/parser/tokenize.py | 4 ---- test/completion/arrays.py | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/jedi/parser/tokenize.py b/jedi/parser/tokenize.py index 5d6161d3..6587265d 100644 --- a/jedi/parser/tokenize.py +++ b/jedi/parser/tokenize.py @@ -107,10 +107,6 @@ def group(*choices): return '(' + '|'.join(choices) + ')' -def any(*choices): - return group(*choices) + '*' - - def maybe(*choices): return group(*choices) + '?' diff --git a/test/completion/arrays.py b/test/completion/arrays.py index 1d4d0e1d..8d42053f 100644 --- a/test/completion/arrays.py +++ b/test/completion/arrays.py @@ -44,6 +44,7 @@ class _StrangeSlice(): def __getitem__(self, slice): return slice +# Should not result in an error, just because the slice itself is returned. #? [] _StrangeSlice()[1:2]