Cleaned python 2.6 workaround up a bit

This commit is contained in:
Holger Rapp 2009-09-17 14:26:57 +02:00
parent e12f7f3b9c
commit 31cd328236
2 changed files with 5 additions and 2 deletions

View File

@ -15,8 +15,10 @@ from UltiSnips.Buffer import VimBuffer
# by python2.6 for vim.error (which is a string that is used as an exception, # by python2.6 for vim.error (which is a string that is used as an exception,
# which is deprecated since 2.5 and will no longer work in 2.7. Let's hope # which is deprecated since 2.5 and will no longer work in 2.7. Let's hope
# vim gets this fixed before) # vim gets this fixed before)
import warnings import sys
warnings.filterwarnings("ignore") if sys.version_info[:2] >= (2,6):
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
class _SnippetDictionary(object): class _SnippetDictionary(object):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):

View File

@ -1185,6 +1185,7 @@ class Multiple_ManySnippetsOneTrigger_ECR(_VimTest):
("test", "Case28", "This is Case 28"), ("test", "Case28", "This is Case 28"),
("test", "Case29", "This is Case 29"), ("test", "Case29", "This is Case 29"),
) # }}} ) # }}}
sleeptime = 0.09 # Do this very slowly
keys = "test" + EX + " " + ESC + ESC + "ahi" keys = "test" + EX + " " + ESC + ESC + "ahi"
wanted = "testhi" wanted = "testhi"