forked from VimPlug/jedi
again tokenize simplifications
This commit is contained in:
@@ -107,10 +107,6 @@ def group(*choices):
|
|||||||
return '(' + '|'.join(choices) + ')'
|
return '(' + '|'.join(choices) + ')'
|
||||||
|
|
||||||
|
|
||||||
def any(*choices):
|
|
||||||
return group(*choices) + '*'
|
|
||||||
|
|
||||||
|
|
||||||
def maybe(*choices):
|
def maybe(*choices):
|
||||||
return group(*choices) + '?'
|
return group(*choices) + '?'
|
||||||
|
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ class _StrangeSlice():
|
|||||||
def __getitem__(self, slice):
|
def __getitem__(self, slice):
|
||||||
return slice
|
return slice
|
||||||
|
|
||||||
|
# Should not result in an error, just because the slice itself is returned.
|
||||||
#? []
|
#? []
|
||||||
_StrangeSlice()[1:2]
|
_StrangeSlice()[1:2]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user